Exception: NameError
- Inherits:
-
StandardError
- Object
- Exception
- StandardError
- NameError
- Defined in:
- mrblib/error.rb
Overview
ISO 15.2.31
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) name
Returns the value of attribute name.
Instance Method Summary (collapse)
-
- (NameError) initialize(message = nil, name = nil)
constructor
A new instance of NameError.
Methods inherited from Exception
#backtrace, #exception, #inspect, #message, #to_s
Constructor Details
- (NameError) initialize(message = nil, name = nil)
Returns a new instance of NameError
28 29 30 31 |
# File 'mrblib/error.rb', line 28 def initialize(message=nil, name=nil) @name = name super(message) end |
Instance Attribute Details
- (Object) name
Returns the value of attribute name
26 27 28 |
# File 'mrblib/error.rb', line 26 def name @name end |