Exception: NameError
- Inherits:
- 
      StandardError
      
        - Object
- Exception
- StandardError
- NameError
 
- Defined in:
- mruby/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. 
Methods inherited from Exception
#backtrace, #exception, #inspect, #message, #set_backtrace, #to_s
Constructor Details
#initialize(message = nil, name = nil) ⇒ NameError
Returns a new instance of NameError.
| 45 46 47 48 | # File 'mruby/mrblib/10error.rb', line 45 def initialize(=nil, name=nil) @name = name super() end | 
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
| 43 44 45 | # File 'mruby/mrblib/10error.rb', line 43 def name @name end |