Sha256: b4c26cda4acd5a62577f6ace4d8ff221b9f16a5a514164f0355468f7b2b3cb88
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
module ExtractValues def value @context.value end def [](symbol) @context[symbol] end def chain(symbol) Musterb::Chain.new self[symbol] end private def new_context(value, old_context = @context) case value when Hash Musterb::HashExtractor.new(value, old_context) when nil Musterb::NullExtractor.new(old_context) else Musterb::ObjectExtractor.new(value, old_context) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
musterb-0.0.7 | lib/musterb/extract_values.rb |
musterb-0.0.6 | lib/musterb/extract_values.rb |
musterb-0.0.5 | lib/musterb/extract_values.rb |
musterb-0.0.4 | lib/musterb/extract_values.rb |