Class: Rundown::Processors::Hashtags

Inherits:
Rundown::Processor show all
Defined in:
lib/rundown/processors/hashtags.rb

Constant Summary

Constants inherited from Rundown::Processor

Rundown::Processor::PUNCTUATION

Instance Attribute Summary

Attributes inherited from Rundown::Processor

#text, #words

Instance Method Summary collapse

Methods inherited from Rundown::Processor

#initialize, #sentences

Constructor Details

This class inherits a constructor from Rundown::Processor

Instance Method Details

#processObject



4
5
6
# File 'lib/rundown/processors/hashtags.rb', line 4

def process
  words.select { |word| word.start_with?('#') && word.size > 1 }
end