Sha256: 87923cd8a1882dedd3fe1bd653ee12b94999648997f18cdd9bf1ca5dae7d3ef9
Contents?: true
Size: 413 Bytes
Versions: 15
Compression:
Stored size: 413 Bytes
Contents
module BillForward # Note: does not use indifferent access! Only entities themselves have indifferent access! class OrderedHashWithDotAccess < ActiveSupport::OrderedHash def method_missing(method_id, *arguments, &block) # no call to super; our criteria is all keys. #setter if /^(\w+)=$/ =~ method_id.to_s return self[$1] = arguments.first end #getter self[method_id.to_s] end end end
Version data entries
15 entries across 15 versions & 1 rubygems