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.



19
20
21
22
23
24
25
26
# File 'lib/nexus_parser.rb', line 19

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

Instance Attribute Details

#charactersObject

Returns the value of attribute characters.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def characters
  @characters
end

#codingsObject

Returns the value of attribute codings.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def codings
  @codings
end

#notesObject

Returns the value of attribute notes.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def notes
  @notes
end

#setsObject

Returns the value of attribute sets.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def sets
  @sets
end

#taxaObject

Returns the value of attribute taxa.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def taxa
  @taxa
end

#varsObject

Returns the value of attribute vars.



17
18
19
# File 'lib/nexus_parser.rb', line 17

def vars
  @vars
end