class GitCompound::Command::Arguments::Type::Parameter::Parameter

Abstract parameter type

Public Instance Methods

used() click to toggle source
# File lib/git_compound/command/arguments/type/parameter/parameter.rb, line 9
def used
  valid? ? [@key, value!].compact : []
end

Private Instance Methods

value!() click to toggle source
# File lib/git_compound/command/arguments/type/parameter/parameter.rb, line 15
def value!
  @args[@args.index(@key) + 1]
end