Declare.rb

Path: lib/Getopt/Declare.rb
Last Update: Mon Feb 15 08:37:14 -0800 2016

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

Ruby port of Perl‘s Getopt::Declare, version 1.09, released May 21, 1999.

     $Release Version: 1.10 $
     $Date: 2004/01/25 07:02:48 $
     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 = /\[(?:ditto|tight|repeatable|required|mutex:.*|implies:.*|excludes:.*|requires:.*)\]/   Regex for removing bracket directives

Public Instance methods

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

[Validate]