Permalink
Browse files

Minor renamings

  • Loading branch information...
1 parent bdfc968 commit 877248760d1c4eb99eb005c7bca6edfddb74a6f7 @jcasimir jcasimir committed Oct 21, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/draper/decorated_enumerable_proxy.rb
@@ -6,7 +6,7 @@ def initialize(collection, klass, context)
@wrapped_collection, @klass, @context = collection, klass, context
end
- # Implementation of Enumerable#each that proxyes to the wrapped collection
+ # Implementation of Enumerable#each that proxies to the wrapped collection
def each(&block)
@wrapped_collection.each { |member| block.call(@klass.new(member, @context)) }
end
@@ -16,12 +16,12 @@ def to_ary
@wrapped_collection.to_ary
end
- def method_missing (meth, *args, &block)
- @wrapped_collection.send(meth, *args, &block)
+ def method_missing (method, *args, &block)
+ @wrapped_collection.send(method, *args, &block)
end
- def respond_to?(meth)
- super || @wrapped_collection.respond_to?(meth)
+ def respond_to?(method)
+ super || @wrapped_collection.respond_to?(method)
end
def to_s

0 comments on commit 8772487

Please sign in to comment.