summaryrefslogtreecommitdiff
path: root/lib/hashie/mash.rb
diff options
context:
space:
mode:
authorDaniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org>2019-01-28 15:51:16 -0500
committerGitHub <noreply@github.com>2019-01-28 15:51:16 -0500
commitdc64b1024cca1916e49b12902c82c3e1560fef39 (patch)
tree84c55562cdd1281072bcd84114d11859a7f5e528 /lib/hashie/mash.rb
parentcd30488f9e4f4cbdfe0ccada40297e6f6d7e5610 (diff)
parent250f174f48a7115c832690fd052dcaf63b6debc9 (diff)
downloadhashie-dc64b1024cca1916e49b12902c82c3e1560fef39.tar.gz
Merge pull request #323 from marshall-lee/define_accessors
Add Hashie::Extensions::Mash::DefineAccessors.
Diffstat (limited to 'lib/hashie/mash.rb')
-rw-r--r--lib/hashie/mash.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb
index 6e45c09..f41d745 100644
--- a/lib/hashie/mash.rb
+++ b/lib/hashie/mash.rb
@@ -119,6 +119,10 @@ module Hashie
end
end
+ def with_accessors!
+ extend Hashie::Extensions::Mash::DefineAccessors
+ end
+
alias to_s inspect
# If you pass in an existing hash, it will