Module: Vito::CommandLine::DocumentFlags::ClassMethods

Defined in:
lib/vito/command_line/document_flags.rb

Instance Method Summary collapse

Instance Method Details

#desc(description) ⇒ Object



24
25
26
# File 'lib/vito/command_line/document_flags.rb', line 24

def desc(description)
  @@descriptions << description
end

#descriptionsObject



16
17
18
# File 'lib/vito/command_line/document_flags.rb', line 16

def descriptions
  @@descriptions
end

#flag(flag) ⇒ Object



20
21
22
# File 'lib/vito/command_line/document_flags.rb', line 20

def flag(flag)
  @@flags << flag
end

#flagsObject



12
13
14
# File 'lib/vito/command_line/document_flags.rb', line 12

def flags
  @@flags
end