Class: SClust::Util::TrimWhitespace
- Defined in:
- lib/sclust/util/filters.rb
Instance Method Summary collapse
Methods inherited from Filter
#after, #apply, #before, #initialize
Constructor Details
This class inherits a constructor from SClust::Util::Filter
Instance Method Details
#filter(term) ⇒ Object
156 157 158 |
# File 'lib/sclust/util/filters.rb', line 156 def filter(term) term.chomp.sub(/^\s*/, '').sub(/\s*$/, '') end |