Sha256: 96725658135f58fdef7c562a09a37614b50194b78c8854044a30563f0a42b828
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
$:.push File.expand_path('../', __FILE__) require "active_support/all" require "hash_delegate/version" require "hash_delegate/accessor" module HashDelegate def hash_delegate(*args) options = args.extract_options! accessor = Accessor.new self args.each do |key| accessor.define_getter key, options[:to] accessor.define_setter key, options[:to] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hash_delegate-0.0.6 | lib/hash_delegate.rb |
hash_delegate-0.0.5 | lib/hash_delegate.rb |