lib/musterb/hash_extractor.rb in musterb-0.2.0 vs lib/musterb/hash_extractor.rb in musterb-1.0.0

- old
+ new

@@ -1,11 +1,11 @@ require 'hashie' -class Musterb::HashExtractor +class Musterb::HashExtractor < Musterb::Extractor attr_reader :parent, :value - def initialize(value, parent) + def initialize(value, parent) @value = to_string_access(value) @parent = parent end def [](symbol) @@ -21,6 +21,6 @@ hash.dup.tap do |hash| hash.extend Hashie::HashExtensions hash.hashie_stringify_keys! end end -end \ No newline at end of file +end