Class: Mutineer::ConfigOption Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/mutineer/config.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

One row of the option schema: how a Config field is parsed and where the user can set it. yaml_key is nil for CLI-only options; flag is nil for YAML-only ones. values/aliases apply to the :enum type.

Instance Attribute Summary collapse

Instance Attribute Details

#aliases ⇒ Object

Returns the value of attribute aliases

Returns:

  • (Object) —

    the current value of aliases



16
17
18
# File 'lib/mutineer/config.rb', line 16

def aliases
  @aliases
end

#field ⇒ Object

Returns the value of attribute field

Returns:

  • (Object) —

    the current value of field



16
17
18
# File 'lib/mutineer/config.rb', line 16

def field
  @field
end

#flag ⇒ Object

Returns the value of attribute flag

Returns:

  • (Object) —

    the current value of flag



16
17
18
# File 'lib/mutineer/config.rb', line 16

def flag
  @flag
end

#type ⇒ Object

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



16
17
18
# File 'lib/mutineer/config.rb', line 16

def type
  @type
end

#values ⇒ Object

Returns the value of attribute values

Returns:

  • (Object) —

    the current value of values



16
17
18
# File 'lib/mutineer/config.rb', line 16

def values
  @values
end

#yaml_key ⇒ Object

Returns the value of attribute yaml_key

Returns:

  • (Object) —

    the current value of yaml_key



16
17
18
# File 'lib/mutineer/config.rb', line 16

def yaml_key
  @yaml_key
end