Sha256: 1c1b630178e0834a7927edbec93a8abfc2c0ee91c77b3241934d7483d5f3f2a0
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true Gem::Author ||= Struct.new( :name, :email, :github, ) do def github_url = github && "https://github.com/#{github}" end module Magic module Lookup AUTHORS = [ Gem::Author.new( name: 'Alexander Senko', email: 'Alexander.Senko@gmail.com', github: 'Alexander-Senko', ), ] class << AUTHORS def names = filter_map &:name def emails = filter_map &:email def github_url = filter_map(&:github_url).first end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic-lookup-0.2.0 | lib/magic/lookup/authors.rb |
magic-lookup-0.1.0 | lib/magic/lookup/authors.rb |