jruby_coercion 0.0.4-java → 0.0.5-java
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,9 @@ module ::JrubyCoercion::RubyToJava
|
|
31
31
|
new_type_registry[mapped_to] = DEFAULT_CONVERTER
|
32
32
|
end
|
33
33
|
|
34
|
+
# Class should include Coercable
|
35
|
+
from_type.__send__(:include, ::JrubyCoercion::Coercable)
|
36
|
+
|
34
37
|
return new_type_registry
|
35
38
|
end
|
36
39
|
end
|
@@ -39,8 +42,6 @@ end
|
|
39
42
|
|
40
43
|
# Setup default mappings for jruby
|
41
44
|
::JrubyCoercion::RubyToJava::Registry::DEFAULT_TYPE_MAP.each do |ruby_type, java_type|
|
42
|
-
ruby_type.__send__(:include, ::JrubyCoercion::Coercable)
|
43
|
-
|
44
45
|
::JrubyCoercion::RubyToJava::Registry.register_converter(ruby_type,
|
45
46
|
java_type,
|
46
47
|
::JrubyCoercion::RubyToJava::Registry::DEFAULT_CONVERTER)
|