rb/lib/twitter-text/extractor.rb
# Extracts a list of all usernames mentioned in the Tweet <tt>text</tt>. If the
# <tt>text</tt> is <tt>nil</tt> or contains no username mentions an empty array
# will be returned.
#
# If a block is given then it will be called for each username.
Extracts a list of all usernames mentioned in the Tweet text. If the
text is nil or contains no username mentions an empty array
will be returned.

If a block is given then it will be called for each username.
Extracts a list of all usernames mentioned in the Tweet text . If the text is nil or contains no username mentions an empty array will be returned . If a block is given then it will be called for each username .
def extract_mentioned_screen_names(text, &block) 
        screen_names = extract_mentioned_screen_names_with_indices(text).map{|m| m[:screen_name]}
        screen_names.each(&block) if block_given?
        screen_names
      end
def extract_mentioned_screen_names ( text , & block ) screen_names = extract_mentioned_screen_names_with_indices ( text ) . map { | m | m [ :screen_name ] } screen_names . each ( & block ) if block_given? screen_names end
Extracts a list of all usernames mentioned in the Tweet <tt>text</tt>.
Extracts a list of all usernames mentioned in the Tweet <tt > text< / tt > .
# :yields: username
text
<not_specific>
block
<not_specific>