class RubyPropertyReflector
Public Instance Methods
propertyForClass(klass, andProperty: property)
click to toggle source
Calls superclass method
# File lib/motion-objection/ruby_property_reflector.rb, line 2 def propertyForClass(klass, andProperty: property) if klass.respondsToSelector :objectionTypeMappings dependency_type = klass.send(:objectionTypeMappings)[property] unless dependency_type.is_a? Class dependency_type = dependency_type.objection_constantize end property_info = JSObjectionPropertyInfo.new property_info.value = dependency_type property_info.type = JSObjectionTypeClass property_info else super end end