Class: NexusParser::Tokens::Token
- Inherits:
-
Object
- Object
- NexusParser::Tokens::Token
- Defined in:
- lib/nexus_parser/tokens.rb
Direct Known Subclasses
AssumptionsBlk, AuthorsBlk, BckSlash, BeginBlk, BlkEnd, CharLabels, CharStateLabels, ChrsBlk, CodonsBlk, Colon, Comma, Dimensions, EndBlk, Equals, FileLbl, Format, LBracket, LParen, LabelBase, LabelsBlk, LinkLine, Matrix, MesquiteBlk, MesquiteBlockID, MesquiteIDs, MqCharModelsBlk, NexusStart, NotesBlk, PositiveInteger, RBracket, RParen, RespectCase, RowVec, SemiColon, SetsBlk, StateLabels, TaxaBlk, Taxlabels, Title, TreesBlk, ValuePair
Class Attribute Summary collapse
-
.regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Attribute Summary collapse
-
#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.
10 11 12 |
# File 'lib/nexus_parser/tokens.rb', line 10 def initialize(str) @value = str end |
Class Attribute Details
.regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
8 9 10 |
# File 'lib/nexus_parser/tokens.rb', line 8 def regexp @regexp end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/nexus_parser/tokens.rb', line 9 def value @value end |