Method: Faceted::Model::ModelClassMethods#materialize
- Defined in:
- lib/faceted/model.rb
#materialize(objects = [], args = {}) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/faceted/model.rb', line 51 def materialize(objects=[], args={}) objects.compact.inject([]) do |a, object| interface = self.new(args) interface.send(:object=, object) interface.send(:initialize_with_object) a << interface end end |