Exception: NameError
- Inherits:
-
StandardError
- Object
- StandardError
- NameError
- Defined in:
- mrblib/10error.rb
Overview
ISO 15.2.31
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(message = nil, name = nil) ⇒ NameError
constructor
A new instance of NameError.
Constructor Details
#initialize(message = nil, name = nil) ⇒ NameError
Returns a new instance of NameError.
5 6 7 8 |
# File 'mrblib/10error.rb', line 5 def initialize(message=nil, name=nil) @name = name super(message) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'mrblib/10error.rb', line 3 def name @name end |