class CommandLine::Switch

Attributes

flags[R]
multi[R]
parser[R]

Public Class Methods

new(flags, parser = nil, multi = false) click to toggle source
# File lib/ejt_command_line.rb, line 31
def initialize(flags, parser = nil, multi = false)
  @flags = flags
  @parser = parser
  @multi = multi
end

Public Instance Methods

has_flag?(flag) click to toggle source
# File lib/ejt_command_line.rb, line 37
def has_flag?(flag)
  @flags.member?(flag)
end