Exception: Golden::Setting::Error::SettingNotHash

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

Instance Method Summary collapse

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_sObject



32
33
34
# File 'lib/golden/setting/error.rb', line 32

def to_s
  "Setting value '#{@value}' is not a hash!"
end