Class: BuildBox::Perform

Inherits:
Object
  • Object
show all
Defined in:
lib/build_box/perform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, binding_context = TOPLEVEL_BINDING, security_level, timeout) ⇒ Perform

Returns a new instance of Perform.



5
6
7
8
9
10
11
12
13
# File 'lib/build_box/perform.rb', line 5

def initialize(code, binding_context=TOPLEVEL_BINDING, security_level, timeout)
  self.unbound_methods   = []
  self.unbound_constants = []
  self.code              = code
  @binding_context       = binding_context
  @security_level        = security_level
  @timeout               = timeout
  evaluate
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/build_box/perform.rb', line 3

def code
  @code
end

#errorObject

Returns the value of attribute error.



3
4
5
# File 'lib/build_box/perform.rb', line 3

def error
  @error
end

#outputObject

Returns the value of attribute output.



3
4
5
# File 'lib/build_box/perform.rb', line 3

def output
  @output
end

#unbound_constantsObject

Returns the value of attribute unbound_constants.



3
4
5
# File 'lib/build_box/perform.rb', line 3

def unbound_constants
  @unbound_constants
end

#unbound_methodsObject

Returns the value of attribute unbound_methods.



3
4
5
# File 'lib/build_box/perform.rb', line 3

def unbound_methods
  @unbound_methods
end