Module: Schema::Include
- Defined in:
- lib/schema/include.rb
Instance Method Summary collapse
-
#transform(schema) ⇒ Object
Include this module into Object to have a handy #transform on every object.
Instance Method Details
#transform(schema) ⇒ Object
Include this module into Object to have a handy #transform on every object. Then object.transform(schema) is like calling Schema.transform(object, schema).
5 6 7 |
# File 'lib/schema/include.rb', line 5 def transform schema Schema.transform self, schema end |