Skip to content

Commit

Permalink
Add band (!) version of the 'Google::Reader::User.tags' method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Machado Campagnani Gama committed Dec 23, 2010
1 parent f76d0f0 commit 2ff6581
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/google-reader/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ def tags
end
end

# define bang (!) version of the 'tags' method that bypasses
# the cache
def tags!
@tags = nil
tags
end

# define 'list items' methods filtered by state; also, add an bang (!)
# version of each *_items method, that bypasses the cache
# and forces a new request
Expand Down

0 comments on commit 2ff6581

Please sign in to comment.