Sha256: 8b20cfd6721cdf8a2f1407287444fcf1258767e39fd0bb90d7091f97fc6ea21a
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
module Prezzo class Context include ParamsDSL def initialize(attributes) @attributes = attributes end def fetch(key, default = nil) value = @attributes.fetch(key, default) if value.is_a?(Hash) Class.new(Context).new(value) else value end end def context self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prezzo-1.0.0.pre.rc | lib/prezzo/context.rb |