Parent

Methods

GLI::CommandLineToken

Logical element of a command line, mostly so that subclasses can have similar initialization and interface

Attributes

aliases[R]
description[R]
long_description[R]
name[R]

Public Class Methods

new(names,description,long_description=nil) click to toggle source
# File lib/gli/command_line_token.rb, line 10
def initialize(names,description,long_description=nil)
  @description = description
  @long_description = long_description
  @name,@aliases,@names = parse_names(names)
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/gli/command_line_token.rb, line 20
def <=>(other)
  self.name.to_s <=> other.name.to_s
end
usage() click to toggle source
# File lib/gli/command_line_token.rb, line 16
def usage
  all_forms
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.