module ScientificNameClean::Rank0
Public Instance Methods
apply(a)
click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 2059 def apply(a) " " + text_value.strip + " " + a.value end
canonical(a)
click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 2063 def canonical(a) " " + a.value end
details(a = nil)
click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 2072 def details(a = nil) {:infraspecies => {:string => (a.value rescue nil), :rank => text_value.strip}} end
pos(a)
click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 2067 def pos(a) interval_end = text_value[-1] == " " ? interval.end - 1 : interval.end {interval.begin => ["infraspecific_type", interval_end], a.interval.begin => ["infraspecies", a.interval.end]} end
value()
click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 2055 def value text_value.strip end