Exception: Golden::Setting::Error::SettingNoMethod

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/golden/setting/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, msg = nil) ⇒ SettingNoMethod

Returns a new instance of SettingNoMethod.



16
17
18
19
# File 'lib/golden/setting/error.rb', line 16

def initialize method, msg = nil
  @method = method
  super msg
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/golden/setting/error.rb', line 21

def to_s
  raise "Please define method '#{@method}' first!"
end