Class: RsegFilter::Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/filters/symbol.rb

Constant Summary collapse

@@separators =
['', '', '', '', '', '', '', '', '', '', '', 
'', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', 
'', '', '', '', '`', '~', '!', '@', '#', '^', 
'&', '*', '\\', '(', ')', '=', '{', '}', '[', ']', 
'|', ';', ':', "'", '<', '>', '?', "\n", "\t", "\r", 
' ', '-', '/', '+', ',', ' ']

Class Method Summary collapse

Class Method Details

.filter(char) ⇒ Object



11
12
13
# File 'lib/filters/symbol.rb', line 11

def self.filter(char)
  @@separators.include?(char) ? :symbol : char
end