Declare.rb

Path: lib/Getopt/Declare.rb
Last Update: Wed Mar 21 17:17:52 ART 2007

Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions

Ruby port of Perl’s Getopt::Declare, version 1.21, released May 21, 1999.

     $Release Version: 1.22 $
     $Date: 2007/01/15 10:53:09 $
     by Gonzalo Garramuņo

For detailed instructions, see Declare.rdoc file

Ruby Port:

       Copyright (c) 2004, Gonzalo Garramuno. All Rights Reserved.
     This package is free software. It may be used, redistributed
     and/or modified under the terms of the Perl Artistic License
          (see http://www.perl.com/perl/misc/Artistic.html)

Original Perl Implementation: Damian Conway (damian@conway.org)

       Copyright (c) 1997-2000, Damian Conway. All Rights Reserved.
     This package is free software. It may be used, redistributed
     and/or modified under the terms of the Perl Artistic License
          (see http://www.perl.com/perl/misc/Artistic.html)

Required files

Getopt/DelimScanner  

Methods

Constants

BracketDirectives = /\[\s*(?:ditto|tight|strict|no\s*case|repeatable|debug|required|mutex:.*|implies:.*|excludes:.*|requires:.*|cluster:.*)\s*\]/   Regex for removing bracket directives

Public Instance methods

Verifies that code is valid Ruby code. returns false if not

[Validate]