Class Getopt::Declare::ScalarArg
In: lib/Getopt/Declare.rb
lib/Getopt/Declare2.rb
Parent: Object

Class used to handle scalar (ie.non-array) parameters

Methods

_reset_stdtype   _reset_stdtype   addtype   addtype   cachecode   cachecode   code   code   conversion   conversion   matcher   matcher   new   new   ows   ows   stdactions   stdactions   stdtype   stdtype   stdtype   stdtype   trailer   trailer  

Attributes

name  [R] 
name  [R] 
nows  [R] 
nows  [R] 
type  [R] 
type  [R] 

Public Class methods

(re)set standard types

(re)set standard types

Add a new (user defined) type to the standard types

Add a new (user defined) type to the standard types

Given the name of a type, return its corresponding action(s)

Given the name of a type, return its corresponding action(s)

Given a standard type name, return the corresponding regex pattern or nil

Given a standard type name, return the corresponding regex pattern or nil

Public Instance methods

Return string with code to cache argument in Getopt::Declare‘s cache

Return string with code to cache argument in Getopt::Declare‘s cache

Return string with code to process parameter

Return string with code to process parameter

Based on parameter type, default conversion to apply

Based on parameter type, default conversion to apply

Create regexp to match parameter

Create regexp to match parameter

Helps build regex that matches parameters of flags Wraps parameter passed for #$1, etc. matching

Helps build regex that matches parameters of flags Wraps parameter passed for #$1, etc. matching

Helps build regex that matches parameters of flags

Helps build regex that matches parameters of flags

[Validate]