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

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

Methods

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

Attributes

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

Public Class methods

(re)set standard types

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

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

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 process parameter

Based on parameter type, default conversion to apply

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

[Validate]