Sha256: 8e3d3189ab085897d9dc983d8c606ab9d2a0ab642d119beec349cdb9c3642445

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

class RubyPropertyReflector
  
  def self.propertyForClass(klass, andProperty: property)
    dependency_type = klass.send(:objectionTypeMappings)[property]
    unless dependency_type.is_a? Class
      dependency_type = dependency_type.objection_constantize
    end
    JSObjectionPropertyInfo.new(dependency_type, JSObjectionTypeClass).value
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-objection-0.7.2 lib/motion-objection/ruby_property_reflector.rb
motion-objection-0.7.1 lib/motion-objection/ruby_property_reflector.rb
motion-objection-0.6.4 lib/motion-objection/ruby_property_reflector.rb
motion-objection-0.6.3 lib/motion-objection/ruby_property_reflector.rb