Class: NexusParser::NexusParser

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

Defined Under Namespace

Classes: Character, ChrState, Coding, Note, Taxon

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNexusParser

Returns a new instance of NexusParser.



16
17
18
19
20
21
22
23
# File 'lib/nexus_parser.rb', line 16

def initialize
  @taxa = []
  @characters = []
  @sets = []
  @codings = []
  @notes = []
  @vars = {}
end

Instance Attribute Details

#charactersObject

Returns the value of attribute characters.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def characters
  @characters
end

#codingsObject

Returns the value of attribute codings.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def codings
  @codings
end

#notesObject

Returns the value of attribute notes.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def notes
  @notes
end

#setsObject

Returns the value of attribute sets.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def sets
  @sets
end

#taxaObject

Returns the value of attribute taxa.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def taxa
  @taxa
end

#varsObject

Returns the value of attribute vars.



14
15
16
# File 'lib/nexus_parser.rb', line 14

def vars
  @vars
end