Class: Cambridge::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/cambridge/environment.rb

Instance Method Summary collapse

Constructor Details

#initializeEnvironment

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