class Startling::Configuration::CliOption

Attributes

abbr_switch[R]
description[R]
full_switch[R]

Public Class Methods

new(abbr_switch, full_switch, description, required) click to toggle source
# File lib/startling/configuration.rb, line 109
def initialize(abbr_switch, full_switch, description, required)
  @abbr_switch = abbr_switch
  @full_switch = full_switch
  @description = description
  @required = required
end

Public Instance Methods

long_switch() click to toggle source
# File lib/startling/configuration.rb, line 116
def long_switch
  @required ? "--#{@full_switch} #{@full_switch}" : "--#{@full_switch}"
end
sym() click to toggle source
# File lib/startling/configuration.rb, line 120
def sym
  full_switch.to_s
end