rb/lib/twitter-text/extractor.rb
# Extracts a list of all cashtags included in the Tweet <tt>text</tt>. If the
# <tt>text</tt> is <tt>nil</tt> or contains no cashtags an empty array
# will be returned. The array returned will not include the leading <tt>$</tt>
# character.
#
# If a block is given then it will be called for each cashtag.
Extracts a list of all cashtags included in the Tweet text. If the
text is nil or contains no cashtags an empty array
will be returned. The array returned will not include the leading $
character.

If a block is given then it will be called for each cashtag.
Extracts a list of all cashtags included in the Tweet text . If the text is nil or contains no cashtags an empty array will be returned . The array returned will not include the leading $ character . If a block is given then it will be called for each cashtag .
def extract_cashtags(text, &block) 
        cashtags = extract_cashtags_with_indices(text).map{|h| h[:cashtag]}
        cashtags.each(&block) if block_given?
        cashtags
      end
def extract_cashtags ( text , & block ) cashtags = extract_cashtags_with_indices ( text ) . map { | h | h [ :cashtag ] } cashtags . each ( & block ) if block_given? cashtags end
Extracts a list of all cashtags included in the Tweet <tt>text</tt>.
Extracts a list of all cashtags included in the Tweet <tt > text< / tt > .
# :yields: cashtag_text
text
<not_specific>
block
<not_specific>