Parent

Class/Module Index [+]

Quicksearch

YARD::CLI::Config

CLI command to view or edit configuration options @since 0.6.2

Attributes

append[RW]

@return [Boolean] whether to append values to existing key

as_list[RW]

@return [Boolean] whether the value being set should be inside a list

key[RW]

@return [Symbol, nil] the key to view/edit, if any

reset[RW]

@return [Boolean] whether to reset the {key}

values[RW]

@return [Array, nil] the list of values to set (or single value), if modifying

Public Class Methods

new() click to toggle source
# File lib/yard/cli/config.rb, line 21
def initialize
  super
  self.key = nil
  self.values = []
  self.reset = false
  self.append = false
  self.as_list = false
end

Public Instance Methods

description() click to toggle source
# File lib/yard/cli/config.rb, line 30
def description
  'Views or edits current global configuration'
end
run(*args) click to toggle source
# File lib/yard/cli/config.rb, line 34
def run(*args)
  optparse(*args)
  if key
    if reset || values.size > 0
      modify_item
    else
      view_item
    end
  else
    list_configuration
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.