Command
CLI command to view or edit configuration options @since 0.6.2
@return [Boolean] whether to append values to existing key
@return [Boolean] whether the value being set should be inside a list
@return [Symbol, nil] the key to view/edit, if any
@return [Boolean] whether to reset the {key}
@return [Array, nil] the list of values to set (or single value), if modifying
# 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
# File lib/yard/cli/config.rb, line 30 def description 'Views or edits current global configuration' end
# 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.