Module: ScientificName::Selector0

Defined in:
lib/biodiversity/parser/scientific_name.rb

Instance Method Summary collapse

Instance Method Details

#apply(a) ⇒ Object



2280
2281
2282
# File 'lib/biodiversity/parser/scientific_name.rb', line 2280

def apply(a)
  " " + text_value + " " + a.value
end

#canonical(a) ⇒ Object



2283
2284
2285
# File 'lib/biodiversity/parser/scientific_name.rb', line 2283

def canonical(a)
  " " + a.value
end

#details(a = nil) ⇒ Object



2286
2287
2288
# File 'lib/biodiversity/parser/scientific_name.rb', line 2286

def details(a = nil)
  {:subspecies => [{:type => text_value, :value => (a.value rescue nil)}]}
end

#valueObject



2277
2278
2279
# File 'lib/biodiversity/parser/scientific_name.rb', line 2277

def value
  text_value.strip
end