Sha256: 4409fa54cc000f2689ebfa24782227cb259090c54b51c74b3c84d486b5f2c39f

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rseg1.9-0.1.5 lib/filters/symbol.rb