Module: Pragma::Macro::Decorator
- Defined in:
- lib/pragma/macro/decorator.rb
Class Method Summary collapse
Class Method Details
.for(_input, name, options) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/pragma/macro/decorator.rb', line 12 def for(_input, name, ) set_defaults() return false unless validate_params() ["result.decorator.#{name}"] = ["decorator.#{name}.class"].new( ['model'] ) validate_expansion(, name) end |