Class: Yacl::Define::Cli::Option

Inherits:
Struct
  • Object
show all
Defined in:
lib/yacl/define/cli/options.rb

Overview

Internal: Encapsulation of all the elements pertaining to a single commandline option.

Instance Attribute Summary collapse

Instance Attribute Details

#castObject

Returns the value of attribute cast

Returns:

  • (Object)

    the current value of cast



5
6
7
# File 'lib/yacl/define/cli/options.rb', line 5

def cast
  @cast
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/yacl/define/cli/options.rb', line 5

def description
  @description
end

#longObject

Returns the value of attribute long

Returns:

  • (Object)

    the current value of long



5
6
7
# File 'lib/yacl/define/cli/options.rb', line 5

def long
  @long
end

#property_nameObject

Returns the value of attribute property_name

Returns:

  • (Object)

    the current value of property_name



5
6
7
# File 'lib/yacl/define/cli/options.rb', line 5

def property_name
  @property_name
end

#shortObject

Returns the value of attribute short

Returns:

  • (Object)

    the current value of short



5
6
7
# File 'lib/yacl/define/cli/options.rb', line 5

def short
  @short
end