Sha256: b55140b3476850f5c0be278bb073e4867236acce06630a6c70a3c61e1fa3ded7
Contents?: true
Size: 363 Bytes
Versions: 17
Compression:
Stored size: 363 Bytes
Contents
module SeedFu # @private class BlockHash def initialize(proc) @hash = {} proc.call(self) end def to_hash @hash end def method_missing(method_name, *args, &block) if method_name.to_s =~ /^(.*)=$/ && args.length == 1 && block.nil? @hash[$1] = args.first else super end end end end
Version data entries
17 entries across 17 versions & 3 rubygems