Sha256: 1465c0aa331f5f75cbf2d7892c3419828a73c6bf987bc3182abdfb2315d939ef
Contents?: true
Size: 281 Bytes
Versions: 1
Compression:
Stored size: 281 Bytes
Contents
require 'delegate' require 'hashie' class AttHash < SimpleDelegator def initialize @hsh = {} super(@hsh) end def method_missing(foo, *args, &blk) if @hsh.respond_to?(foo) @hsh.send(foo, *args, &blk) else @hsh[foo.to_sym] = args end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yearbook-0.3.0 | lib/yearbook/att_hash.rb |