Module: Wedge::Plugins::Form::Delegates
- Included in:
- Wedge::Plugins::Form
- Defined in:
- lib/wedge/plugins/form.rb,
lib/wedge/plugins/form_backup.rb
Overview
This allows us to call super
Instance Method Summary collapse
Instance Method Details
#_delegates(*names) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wedge/plugins/form.rb', line 17 def _delegates(*names) accessors = Module.new do extend Forwardable names.each do |name| delegate [name, "#{name}="] => :_atts end end include accessors end |