summaryrefslogtreecommitdiff
path: root/UPGRADING.md
diff options
context:
space:
mode:
authorZloy <zhoran@inbox.ru>2015-01-14 06:56:43 -0500
committerdB <dblock@dblock.org>2015-01-14 06:56:43 -0500
commitc2225e0d261e570f6a56a5cfb772e548ff7af42b (patch)
tree5fd50ceb1bc9e87d259ecf720a250504bcb081e3 /UPGRADING.md
parenteeba6ee3af413c8623fdb55864a6eb33d907e743 (diff)
downloadhashie-c2225e0d261e570f6a56a5cfb772e548ff7af42b.tar.gz
Methods such as abc? return true/false Hashie::Extensions::MethodReader.
Diffstat (limited to 'UPGRADING.md')
-rw-r--r--UPGRADING.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/UPGRADING.md b/UPGRADING.md
index 25e8a84..f9ab157 100644
--- a/UPGRADING.md
+++ b/UPGRADING.md
@@ -1,6 +1,30 @@
Upgrading Hashie
================
+### Upgrading to 3.2.2
+
+#### Testing if key defined
+
+In versions <= 3.2.1 Hash object being questioned doesn't return a boolean value as it's mentioned in README.md
+
+```ruby
+class MyHash < Hash
+ include Hashie::Extensions::MethodAccess
+end
+
+h = MyHash.new
+h.abc = 'def'
+h.abc # => 'def'
+h.abc? # => 'def'
+```
+
+In versions >= 3.2.2 it returns a boolean value
+
+```ruby
+h.abc? # => true
+h.abb? # => false
+```
+
### Upgrading to 3.2.1
#### Possible coercion changes