Exception: SimpleLogic::UndefinedVariableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_logic/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, name) ⇒ UndefinedVariableError

Returns a new instance of UndefinedVariableError.



11
12
13
14
# File 'lib/simple_logic/errors.rb', line 11

def initialize(offset, name)
  @offset = offset
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/simple_logic/errors.rb', line 10

def name
  @name
end

#offsetObject (readonly)

Returns the value of attribute offset.



10
11
12
# File 'lib/simple_logic/errors.rb', line 10

def offset
  @offset
end