Exception: Safemode::NoMethodError

Inherits:
Error show all
Defined in:
lib/safemode/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, jail, source = nil) ⇒ NoMethodError

Returns a new instance of NoMethodError.



18
19
20
# File 'lib/safemode/exceptions.rb', line 18

def initialize(method, jail, source = nil)
  super "undefined method '#{method}' for #{jail}" + (source ? " (#{source})" : '')
end