lib/musterb/null_extractor.rb in musterb-0.1.2 vs lib/musterb/null_extractor.rb in musterb-0.2.0

- old
+ new

@@ -1,9 +1,9 @@ class Musterb::NullExtractor attr_reader :value, :parent - def initialize(parent) - @parent = parent + def initialize(parent = nil) + @parent = parent || self end def [](value) nil end \ No newline at end of file