Exception: Golden::Setting::Error::SettingNotHash
- Inherits:
-
TypeError
- Object
- TypeError
- Golden::Setting::Error::SettingNotHash
- Defined in:
- lib/golden/setting/error.rb
Instance Method Summary collapse
-
#initialize(value, msg = nil) ⇒ SettingNotHash
constructor
A new instance of SettingNotHash.
- #to_s ⇒ Object
Constructor Details
#initialize(value, msg = nil) ⇒ SettingNotHash
Returns a new instance of SettingNotHash.
27 28 29 30 |
# File 'lib/golden/setting/error.rb', line 27 def initialize value, msg = nil @value = value super msg end |
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/golden/setting/error.rb', line 32 def to_s "Setting value '#{@value}' is not a hash!" end |