class CLASP::AliasSpecification

A class that represents an explicit alias for a flag or an option

Attributes

aliases[R]

The alias' aliases array

extras[R]

The flag's extras

help[R]

The flag's help string

name[R]

The alias' name string

Public Class Methods

new(name, aliases) click to toggle source
# File lib/clasp/specifications.rb, line 354
def initialize(name, aliases)

        @name         =      name
        @aliases      =    (aliases || []).select { |a| a and not a.empty? }
        @extras               =    nil
        @help         =      nil
end

Public Instance Methods

to_s() click to toggle source

String form of the option

# File lib/clasp/specifications.rb, line 372
def to_s

        "{#{name}; aliases=#{aliases.join(', ')}}"
end