Sha256: 6a742185d6a8cb3307f7795ca8c4558a3dd58b7d1e80a425b65e3596fc3637cd

Contents?: true

Size: 692 Bytes

Versions: 7

Compression:

Stored size: 692 Bytes

Contents

module RsegFilter
  class Symbol
    @@separators = ['`', '[', ']', '、', '=', '‘', ';', '。', '|', '?', '》', 
                  '《', ':', '“', '{', '}', ')', '(', '*', '…', '#', '!',
                  '~', '’', '”', '〕', '〈', '〉', '「', '」', '『', '』', '〖', '〗', 
                  '【', '】', '<', '>', '`', '~', '!', '@', '#', '^', 
                  '&', '*', '\\', '(', ')', '=', '{', '}', '[', ']', 
                  '|', ';', ':', "'", '<', '>', '?', "\n", "\t", "\r", 
                  ' ', '-', '/', '+', ',', ' ']
    def self.filter(char)
      @@separators.include?(char) ? :symbol : char
    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
rseg_harry-0.0.4 lib/filters/symbol.rb
rseg_harry-0.0.3 lib/filters/symbol.rb
rseg_ggharry-0.0.2 lib/filters/symbol.rb
rseg_ggharry-0.0.1 lib/filters/symbol.rb
rseg-ggharry-0.0.1 lib/filters/symbol.rb
rseg-0.1.7 lib/filters/symbol.rb
rseg-0.1.6 lib/filters/symbol.rb