Module: ScientificNameClean::Rank0
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(a) ⇒ Object
1394 1395 1396 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1394 def apply(a) " " + text_value + " " + a.value end |
#canonical(a) ⇒ Object
1398 1399 1400 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1398 def canonical(a) " " + a.value end |
#details(a = nil) ⇒ Object
1402 1403 1404 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1402 def details(a = nil) {:infraspecies => {:epitheton => (a.value rescue nil), :rank => text_value}} end |
#value ⇒ Object
1390 1391 1392 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1390 def value text_value.strip end |