Class: Cambridge::Environment
- Inherits:
-
Object
- Object
- Cambridge::Environment
- Defined in:
- lib/cambridge/environment.rb
Instance Method Summary collapse
- #eval(ruby) ⇒ Object
-
#initialize ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize ⇒ Environment
Returns a new instance of Environment.
3 4 5 |
# File 'lib/cambridge/environment.rb', line 3 def initialize @stack = [] end |
Instance Method Details
#eval(ruby) ⇒ Object
7 8 9 |
# File 'lib/cambridge/environment.rb', line 7 def eval(ruby) instance_eval ruby end |