Permalink
Browse files

Merge pull request #101 from netqyq/master

fix: wrong method end tag
  • Loading branch information...
hanklords committed Nov 30, 2017
2 parents cd1325f + a6cfd84 commit 26f350083ee2f5e53cd2f7990af1b3812075c4e5
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/flickraw/response.rb
View
@@ -23,7 +23,7 @@ def initialize(h, type) # :nodoc:
else v
end
methods << "def #{k}; @h['#{k}'] end;" if Util.safe_for_eval?(k)
- }
+ end
eval methods << 'end'
end
def [](k); @h[k] end
@@ -38,11 +38,15 @@ class ResponseList < Response
include Enumerable
def initialize(h, t, a); super(h, t); @a = a end
def [](k); k.is_a?(Integer) ? @a[k] : super(k) end
- def each; @a.each { |e| yield e } end
+ def each
+ @a.each { |e| yield e }
+ end
def to_a; @a end
def inspect; @a.inspect end
def size; @a.size end
- def map!; @a = @a.map { |e| yield e } end
+ def map!
+ @a = @a.map { |e| yield e }
+ end
def marshal_dump; [@h, @flickr_type, @a] end
alias length size
end

0 comments on commit 26f3500

Please sign in to comment.