fix fibo with new syntax. certainly works for operators, but not everything
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user