Exception: NoMethodError

Inherits:
NameError show all
Defined in:
opal/opal/corelib/error.rb,
opal/opal/corelib/error.rb

Instance Attribute Summary collapse

Attributes inherited from NameError

#name

Instance Method Summary collapse

Methods inherited from Exception

#backtrace, exception, #exception, #inspect, #message, new, #to_s

Constructor Details

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

Returns a new instance of NoMethodError



137
138
139
140
# File 'opal/opal/corelib/error.rb', line 137

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args



135
136
137
# File 'opal/opal/corelib/error.rb', line 135

def args
  @args
end