Skip to content

Commit

Permalink
fix typo from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian LUPU committed Nov 2, 2012
1 parent 0047382 commit 28e0c26
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?(method_name, include_private = false)
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?(method_name, include_private = false)
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?(method_name, include_private = false)
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 28e0c26

Please sign in to comment.