Module: ScientificNameClean::Root1
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#canonical ⇒ Object
28 29 30 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 28 def canonical a.canonical.gsub(/\s{2,}/, ' ').strip end |
#details ⇒ Object
40 41 42 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 40 def details a.details.class == Array ? a.details : [a.details] end |
#hybrid ⇒ Object
36 37 38 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 36 def hybrid a.hybrid end |
#pos ⇒ Object
32 33 34 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 32 def pos a.pos end |
#value ⇒ Object
24 25 26 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 24 def value a.value.gsub(/\s{2,}/, ' ').strip end |