Class: Taxonifi::Splitter::Tokens::Token
- Inherits:
-
Object
- Object
- Taxonifi::Splitter::Tokens::Token
- Defined in:
- lib/taxonifi/splitter/tokens.rb
Direct Known Subclasses
AuthorYear, Authors, Comma, LeftParen, Pages, Quadrinomial, RightParen, Variety, VolumeNumber, Year
Class Attribute Summary collapse
-
.regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Attribute Summary collapse
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(str) ⇒ Token
constructor
A new instance of Token.
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
.regexp ⇒ Object (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
#flag ⇒ Object (readonly)
Returns the value of attribute flag.
14 15 16 |
# File 'lib/taxonifi/splitter/tokens.rb', line 14 def flag @flag end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'lib/taxonifi/splitter/tokens.rb', line 14 def value @value end |