diff options
Diffstat (limited to 'lib/hashie/extensions/strict_key_access.rb')
-rw-r--r-- | lib/hashie/extensions/strict_key_access.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/hashie/extensions/strict_key_access.rb b/lib/hashie/extensions/strict_key_access.rb index 0822c53..0edd698 100644 --- a/lib/hashie/extensions/strict_key_access.rb +++ b/lib/hashie/extensions/strict_key_access.rb @@ -15,12 +15,15 @@ module Hashie # >> hash[:cow] # KeyError: key not found: :cow # - # NOTE: For googlers coming from Python to Ruby, this extension makes a Hash behave more like a "Dictionary". + # NOTE: For googlers coming from Python to Ruby, this extension makes a Hash + # behave more like a "Dictionary". # module StrictKeyAccess class DefaultError < StandardError - def initialize(msg = 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense', *args) - super + def initialize + super( + 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense' + ) end end |