Class: Chitin::Sandbox
Instance Attribute Summary collapse
-
#previous ⇒ Object
Returns the value of attribute previous.
Instance Method Summary collapse
- #evaluate(code) ⇒ Object
-
#initialize ⇒ Sandbox
constructor
A new instance of Sandbox.
- #inspect ⇒ Object
Constructor Details
#initialize ⇒ Sandbox
Returns a new instance of Sandbox.
5 6 7 8 |
# File 'lib/chitin/sandbox.rb', line 5 def initialize @binding = binding @previous = nil end |
Instance Attribute Details
#previous ⇒ Object
Returns the value of attribute previous.
3 4 5 |
# File 'lib/chitin/sandbox.rb', line 3 def previous @previous end |