class Rubikon::Flag

A flag is an application parameter without arguments

@author Sebastian Staudt @see Application::DSLMethods#flag @see Application::DSLMethods#global_flag @see Parameter @since 0.3.0

Private Instance Methods

<<(arg) click to toggle source

Adds an argument to this flag

@param arg (see Parameter#<<) @raise [ExtraArgumentError] is raised because flags never take any

arguments.
# File lib/rubikon/flag.rb, line 28
def <<(arg)
  raise ExtraArgumentError.new(@name)
end
args_full?() click to toggle source

Checks whether this flag has all required arguments supplied

@return [true] This is always true because flags never take any

arguments.
# File lib/rubikon/flag.rb, line 36
def args_full?
  true
end
more_args?() click to toggle source

Checks whether this flag can take more arguments

@return [false] This is always false because flags never take any

arguments.
# File lib/rubikon/flag.rb, line 44
def more_args?
  false
end