Method: Representable::Binding.build
- Defined in:
- lib/representable/binding.rb
.build(definition, *args) ⇒ Object
12 13 14 15 16 |
# File 'lib/representable/binding.rb', line 12 def self.build(definition, *args) # DISCUSS: move #create_binding to this class? return definition.create_binding(*args) if definition[:binding] build_for(definition, *args) end |