fix fibo with new syntax. certainly works for operators, but not everything

This commit is contained in:
Torsten Ruger
2014-05-21 12:47:40 +03:00
parent 16a07d5aa2
commit e1f889fd10
5 changed files with 50 additions and 22 deletions

View File

@ -23,4 +23,15 @@ module Support
end
end
end
end
end
class Binding
#these are defined in 2.1 and thus the definitions should be conditional. TODO
def local_variable_defined? sym
vars = eval("local_variables")
vars.include? sym
end
def local_variable_get sym
eval(sym.to_s)
end
end