Skip to content

Commit

Permalink
Revert "Merge pull request hashie#62 from dlupu/master"
Browse files Browse the repository at this point in the history
This reverts commit 419446a, reversing
changes made to fec979f.
  • Loading branch information
Jerry Cheung authored and ohrite committed Feb 12, 2013
1 parent 80de0a0 commit 1c02cc3
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, include_private = false)
def respond_to?(name)
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, include_private = false)
def respond_to?(name)
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, include_private = false)
def respond_to?(name)
return true if name.to_s =~ /(.*)\?$/ && (key?($1) || key?($1.to_sym))
super
end
Expand Down

0 comments on commit 1c02cc3

Please sign in to comment.