clip.rb

Path: lib/clip.rb
Last Update: Fri Oct 02 09:21:44 -0700 2009

Required files

shellwords  

Methods

Clip   reset_hash!  

Public Class methods

Clear the cached hash value. Probably only useful for tests, but whatever.

[Source]

# File lib/clip.rb, line 449
  def self.reset_hash!; @hash = nil end

Public Instance methods

Parse arguments (defaults to ARGV) with the Clip::Parser configured in the given block. This is the main method you call to get the ball rolling.

[Source]

# File lib/clip.rb, line 9
def Clip(args=ARGV)
  parser = Clip::Parser.new
  raise "Dontcha wanna configure your parser?" unless block_given?
  yield parser
  parser.parse(args)
  parser
end

[Validate]