lib/musterb/binding_extractor.rb in musterb-0.0.2 vs lib/musterb/binding_extractor.rb in musterb-0.0.3
- old
+ new
@@ -2,14 +2,10 @@
def initialize(_binding)
@binding = _binding
end
def [](symbol)
- @binding.eval <<-EOF
- begin
- #{symbol}
- rescue NameError
- nil
- end
-EOF
+ @binding.eval symbol
+ rescue NameError
+ nil
end
-end
\ No newline at end of file
+end