Add Enumerable mixin to Twitter::Search #134

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@alindeman
Contributor

alindeman commented Dec 31, 2010

Twitter::Search already has an #each method. By trivially mixing in Enumerable, it gains more potentially useful methods for free.

e.g.,
Twitter::Search.new.mentioning("@gem").collect(&:text)
=> ["@danyelleskinner @gem @gem?", "Working out @gem of the hills. And then a late night tennis match with the guys. LOVIN THIS.", "@gem thanks! Keep up the good work btw :-)", ...]

@sferik

This comment has been minimized.

Show comment Hide comment
@sferik

sferik Dec 31, 2010

Owner

Love it! Thanks.

Owner

sferik commented Dec 31, 2010

Love it! Thanks.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment