diff options
author | Douglas Willcocks <douglas@d-tw.org> | 2015-01-04 16:39:08 +0100 |
---|---|---|
committer | Douglas Willcocks <douglas@d-tw.org> | 2015-01-13 21:31:04 +0100 |
commit | 44d4babe37be2d0f035e60269bb84c9d15013297 (patch) | |
tree | 8854cca633dc40b389cc090e34055d4c53a688d5 /lib/hashie/dash.rb | |
parent | 700aed2a5ce3cc38889835e7901355112b269a74 (diff) | |
download | hashie-44d4babe37be2d0f035e60269bb84c9d15013297.tar.gz |
Fix bug where Dash changes argument to `property`
Diffstat (limited to 'lib/hashie/dash.rb')
-rw-r--r-- | lib/hashie/dash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashie/dash.rb b/lib/hashie/dash.rb index 22f6bc8..849629f 100644 --- a/lib/hashie/dash.rb +++ b/lib/hashie/dash.rb @@ -44,7 +44,7 @@ module Hashie unless instance_methods.map(&:to_s).include?("#{property_name}=") define_method(property_name) { |&block| self.[](property_name, &block) } - property_assignment = property_name.to_s.concat('=').to_sym + property_assignment = "#{property_name}=".to_sym define_method(property_assignment) { |value| self.[]=(property_name, value) } end |