Exception: Golden::Setting::Error::SettingNoMethod
- Inherits:
-
NoMethodError
- Object
- NoMethodError
- Golden::Setting::Error::SettingNoMethod
- Defined in:
- lib/golden/setting/error.rb
Instance Method Summary collapse
-
#initialize(method, msg = nil) ⇒ SettingNoMethod
constructor
A new instance of SettingNoMethod.
- #to_s ⇒ Object
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_s ⇒ Object
21 22 23 |
# File 'lib/golden/setting/error.rb', line 21 def to_s raise "Please define method '#{@method}' first!" end |