class Contributor::Author

Attributes

name[R]

Public Class Methods

new(name, options = nil) click to toggle source
# File lib/contributor/author.rb, line 5
def initialize(name, options = nil)
  options ||= {}

  @name = name
  @alias = if options['alias']
             options['alias']
           else
             []
           end
end

Public Instance Methods

alias_names() click to toggle source
# File lib/contributor/author.rb, line 16
def alias_names
  [@name] + @alias
end
alias_names_for_git() click to toggle source
# File lib/contributor/author.rb, line 20
def alias_names_for_git
  alias_names.map { |v| v.gsub(/\s/, '\ ') }
end