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, #backtrace_locations, #cause, exception, #exception, #full_message, #inspect, #message, new, #set_backtrace, #to_s

Constructor Details

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

Returns a new instance of NoMethodError.



270
271
272
273
# File 'opal/opal/corelib/error.rb', line 270

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



268
269
270
# File 'opal/opal/corelib/error.rb', line 268

def args
  @args
end