lib/musterb/hash_extractor.rb in musterb-1.0.0 vs lib/musterb/hash_extractor.rb in musterb-1.0.1
- old
+ new
@@ -1,11 +1,11 @@
require 'hashie'
-class Musterb::HashExtractor < Musterb::Extractor
+class Musterb::HashExtractor
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
+end
\ No newline at end of file