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, CharStateLabels, ChrsBlk, CodonsBlk, Colon, Comma, Dimensions, EndBlk, Equals, FileLbl, Format, ID, LBracket, LParen, Label, LabelsBlk, LinkLine, Matrix, MesquiteBlk, MesquiteBlockID, MesquiteIDs, MqCharModelsBlk, NexusStart, NotesBlk, Number, RBracket, RParen, RespectCase, RowVec, SemiColon, SetsBlk, 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.
9 10 11 |
# File 'lib/nexus_parser/tokens.rb', line 9 def initialize(str) @value = str end |
Class Attribute Details
.regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
7 8 9 |
# File 'lib/nexus_parser/tokens.rb', line 7 def regexp @regexp end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/nexus_parser/tokens.rb', line 8 def value @value end |