Exception: Subaltern::UndefinedVariableError

Inherits:
SubalternError
  • Object
show all
Defined in:
lib/subaltern/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(varname) ⇒ UndefinedVariableError

Returns a new instance of UndefinedVariableError.



68
69
70
71
72
# File 'lib/subaltern/errors.rb', line 68

def initialize(varname)

  @variable_name = varname
  super("undefined variable #{varname.inspect}")
end

Instance Attribute Details

#variable_nameObject (readonly)

Returns the value of attribute variable_name.



66
67
68
# File 'lib/subaltern/errors.rb', line 66

def variable_name
  @variable_name
end