Module: ScientificNameDirty::Root1
- Defined in:
- lib/biodiversity/parser/scientific_name_dirty.rb
Instance Method Summary collapse
- #canonical ⇒ Object
- #details ⇒ Object
- #hybrid ⇒ Object
- #parser_run ⇒ Object
- #pos ⇒ Object
- #value ⇒ Object
Instance Method Details
#canonical ⇒ Object
33 34 35 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 33 def canonical a.canonical.gsub(/\s{2,}/, " ").strip end |
#details ⇒ Object
45 46 47 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 45 def details a.details.class == Array ? a.details : [a.details] end |
#hybrid ⇒ Object
41 42 43 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 41 def hybrid a.hybrid end |
#parser_run ⇒ Object
49 50 51 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 49 def parser_run 2 end |
#pos ⇒ Object
37 38 39 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 37 def pos a.pos end |
#value ⇒ Object
29 30 31 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 29 def value a.value.gsub(/\s{2,}/, " ").strip end |