Sha256: 4c2d3bea5d6fbb4d008bd4186385f895665c2d13ea768a929c44339236a72d35

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

module Reality
  # @private
  module Person
    extend Entity::WikipediaType

    infobox_name 'Infobox person', 'Infobox person ii'

    # Singular artists, like Bjork or David Bowie
    # TODO: should not repeat code from musical artist, but include it from module?
    parse :albums, [:entity] do |page|
      if (sec = page.sections('Discography').first)
        sec.lookup(:UnorderedList).first.lookup(:Wikilink, :italic?)
      else
        nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reality-0.0.5 lib/reality/definitions/wikipedia_person.rb