Exception: Subaltern::UndefinedVariableError
- Inherits:
-
SubalternError
- Object
- RuntimeError
- SubalternError
- Subaltern::UndefinedVariableError
- Defined in:
- lib/subaltern/errors.rb
Instance Attribute Summary collapse
-
#variable_name ⇒ Object
readonly
Returns the value of attribute variable_name.
Instance Method Summary collapse
-
#initialize(varname) ⇒ UndefinedVariableError
constructor
A new instance of UndefinedVariableError.
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_name ⇒ Object (readonly)
Returns the value of attribute variable_name.
66 67 68 |
# File 'lib/subaltern/errors.rb', line 66 def variable_name @variable_name end |