module ActiveTriples::Reflection
Public Class Methods
add_reflection(model, name, reflection)
click to toggle source
# File lib/active_triples/reflection.rb, line 25 def self.add_reflection(model, name, reflection) model._active_triples_config = model._active_triples_config.merge(name.to_s => reflection) end
Public Instance Methods
reflections()
click to toggle source
Gives access to a `Reflection` of the properties configured on this class
@example
my_source.reflections.has_property?(:title) my_source.reflections.reflect_on_property(:title)
@return [Class] gives `self#class`
# File lib/active_triples/reflection.rb, line 21 def reflections self.class end