Module: Representable::DSLAdditions
- Defined in:
- lib/representable.rb
Overview
Internal module for DSL sugar that should not go into the core library.
Instance Method Summary collapse
Instance Method Details
#property(name, options = {}, &block) ⇒ Object
155 156 157 158 159 160 161 162 163 |
# File 'lib/representable.rb', line 155 def property(name, ={}, &block) return super unless block_given? inline = inline_representer(representer_engine, name, , &block) inline.module_eval { include [:extend] } if [:extend] [:extend] = inline super end |