lib/musterb/object_extractor.rb in musterb-1.0.0 vs lib/musterb/object_extractor.rb in musterb-1.0.1
- old
+ new
@@ -1,16 +1,16 @@
-class Musterb::ObjectExtractor < Musterb::Extractor
+class Musterb::ObjectExtractor
attr_reader :parent, :value
def initialize(value, parent)
@value = value
@parent = parent
end
- def [](symbol)
+ def [](symbol)
if @value.respond_to? symbol
@value.send(symbol)
else
@parent[symbol]
end
end
-end
+end
\ No newline at end of file