Module: Kantox::Split::Graph::Attributed::ClassMethods

Defined in:
lib/kantox/split/graph.rb

Instance Method Summary collapse

Instance Method Details

#configure_embedded(parameter = nil, &cb) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/kantox/split/graph.rb', line 22

def configure_embedded parameter = nil, &cb
  store_variable :embedded_parameter_getter, parameter || cb
  class_eval do
    def embedded
      lookup_variable_value lookup_variable :embedded_parameter_getter
    end
  end
end