Module: Representable::ClassMethods
- Defined in:
- lib/representable.rb
Defined Under Namespace
Modules: Declarations
Instance Method Summary collapse
-
#create_represented(document, *args) ⇒ Object
Create and yield object and options.
Instance Method Details
#create_represented(document, *args) ⇒ Object
Create and yield object and options. Called in .from_json and friends.
141 142 143 144 145 |
# File 'lib/representable.rb', line 141 def create_represented(document, *args) new.tap do |represented| yield represented, *args if block_given? end end |