Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/attr_delegate.rb
Instance Method Summary collapse
Instance Method Details
#attr_delegate(*attrs) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/attr_delegate.rb', line 6 def attr_delegate(*attrs) = attrs. attrs.each do |attr| delegate attr, "#{attr}=", end end |