Skip to content

Commit

Permalink
Revert "Revert "Merge pull request hashie#62 from dlupu/master""
Browse files Browse the repository at this point in the history
This reverts commit 6af738f.
  • Loading branch information
Jerry Cheung authored and ohrite committed Feb 12, 2013
1 parent 8e81957 commit 4f6b944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hashie/extensions/method_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module Extensions
#
# user.not_declared # => NoMethodError
module MethodReader
def respond_to?(name)
def respond_to?(name, include_private = false)
return true if key?(name.to_s) || key?(name.to_sym)
super
end
Expand Down Expand Up @@ -57,7 +57,7 @@ def method_missing(name, *args)
# h['awesome'] # => 'sauce'
#
module MethodWriter
def respond_to?(name)
def respond_to?(name, include_private = false)
return true if name.to_s =~ /=$/
super
end
Expand Down Expand Up @@ -96,7 +96,7 @@ def convert_key(key)
# h.def? # => false
# h.hji? # => NoMethodError
module MethodQuery
def respond_to?(name)
def respond_to?(name, include_private = false)
return true if name.to_s =~ /(.*)\?$/ && (key?($1) || key?($1.to_sym))
super
end
Expand Down

0 comments on commit 4f6b944

Please sign in to comment.