Sha256: 428f2602ac968886dfe1156c945fe17e190ead3dbcf6ae7e2bef036ffee5c8ab
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
module Docks module Tags class Author < Base def initialize @name = :author @synonyms = [:contributor] @multiple_allowed = true @multiline = false end def process(symbol) symbol.update(@name) do |authors| authors = Array(authors).map { |author| split_on_top_level_parens_commas_and_pipes(author) }.flatten authors.map { |author| OpenStruct.new name_and_parenthetical(author, :name, :email) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | lib/docks/tags/author_tag.rb |
docks_app-0.0.2 | lib/docks/tags/author_tag.rb |
docks_app-0.0.1 | lib/docks/tags/author_tag.rb |