module DelegateAccessors::ClassMethods
Public Instance Methods
delegate_accessors(*methods)
click to toggle source
# File lib/delegate_accessors.rb, line 8 def delegate_accessors(*methods) options = methods.pop accessors = methods.reduce([]) do |acc, method| acc + [method, "#{method}="] end delegate *(accessors << options) end