Class: Taxonifi::Splitter::Tokens::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/taxonifi/splitter/tokens.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Token

Returns a new instance of Token.



15
16
17
# File 'lib/taxonifi/splitter/tokens.rb', line 15

def initialize(str)
  @value = str
end

Class Attribute Details

.regexpObject (readonly)

Returns the value of attribute regexp.



11
12
13
# File 'lib/taxonifi/splitter/tokens.rb', line 11

def regexp
  @regexp
end

Instance Attribute Details

#flagObject (readonly)

Returns the value of attribute flag.



14
15
16
# File 'lib/taxonifi/splitter/tokens.rb', line 14

def flag
  @flag
end

#valueObject (readonly)

Returns the value of attribute value.



14
15
16
# File 'lib/taxonifi/splitter/tokens.rb', line 14

def value
  @value
end