andreasronge/neo4j — Issue #105: TypeConverter changes property
Author: dnagir
Created: 2011-12-14 23:20:09+00:00
State: open

http://neo4j.lighthouseapp.com/projects/15548/tickets/177-typeconverter-changes-property

Define a TypeConverter:

```ruby
module Neo4j::TypeConverters
class HashConverter
class << self
def convert?(type)
true
end
def to_java(val)
# Some string with special character
"/x81"
end
def to_ruby(val)
# Argument `val` is different than expected ("\xC2\x81")
raise val unless val == "/x81"
val
end
end
end
end
```