lib/musterb/instance_variable_extractor.rb in musterb-0.1.1 vs lib/musterb/instance_variable_extractor.rb in musterb-0.1.2
- old
+ new
@@ -5,10 +5,9 @@
@value = value
@parent = parent
end
def [](symbol)
- puts "looking for #{symbol}"
if value.instance_variable_defined?("@#{symbol}")
value.instance_variable_get("@#{symbol}")
else
@parent[symbol]
end
\ No newline at end of file