Module: Roda::Component::Form::Delegates
- Included in:
- Roda::Component::Form
- Defined in:
- lib/roda/component/form.rb
Instance Method Summary collapse
Instance Method Details
#_delegates(*names) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/roda/component/form.rb', line 10 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 |