Module: Representable::ClassMethods
- Defined in:
- lib/representable.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Accessors, 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.
94 95 96 97 98 |
# File 'lib/representable.rb', line 94 def create_represented(document, *args) new.tap do |represented| yield represented, *args if block_given? end end |