Exception: NoMethodError

Inherits:
NameError show all
Defined in:
mrblib/10error.rb

Overview

ISO 15.2.32

Instance Attribute Summary collapse

Attributes inherited from NameError

#name

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, #exception, #inspect, #message, #set_backtrace, #to_s

Constructor Details

#initialize(message = nil, name = nil, args = nil) ⇒ NoMethodError

Returns a new instance of NoMethodError



38
39
40
41
# File 'mrblib/10error.rb', line 38

def initialize(message=nil, name=nil, args=nil)
  @args = args
  super message, name
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args



36
37
38
# File 'mrblib/10error.rb', line 36

def args
  @args
end