Module: Wedge::Plugins::Form::Delegates
- Included in:
- Wedge::Plugins::Form
- Defined in:
- lib/wedge/plugins/form.rb
Instance Method Summary collapse
Instance Method Details
#_delegates(*names) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/wedge/plugins/form.rb', line 13 def _delegates(*names) accessors = Module.new do extend Forwardable # DISCUSS: do we really need Forwardable here? names.each do |name| delegate [name, "#{name}="] => :_attributes end end include accessors end |