Class: Module

Inherits:
Object
  • Object
show all
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)
  options = attrs.extract_options!
  attrs.each do |attr|
    delegate attr, "#{attr}=", options
  end
end