Sha256: 4c6f69f474e5df94815d7ef01b597fa4320076f66247d4fbd8db1680c4f927a9
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
module Love class Gem attr_reader :name, :authors, :plain_authors, :spec def initialize(spec, fetch = true) @spec = spec @name = spec.name @plain_authors = spec.authors @authors = [] fetch_authors if fetch end def fetch_authors plain_authors.each do |name| person = Love::Author.new(name) person.add_gem self add_author person end end def add_author(author) @authors << author end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
share_some_love-0.0.5 | lib/love/gem.rb |