Method::Arg (Class)

In: DescribeMethods.rb
Parent: Object

Describes a single argument for a method

Methods

new   to_s  

Constants

RECOGNIZED_TYPES = %w| string symbol integer boolean float date time datetime zipcode list array hash block |.collect!{ |s| s.to_sym }

Attributes

default_value  [R]  A default value to suggest for the argument
description  [R]  A description of the argument
max  [R]  A maximum value for the argument (or nil for /not applicable/ or no maximum)
min  [R]  A minimum value for the argument (or nil for /not applicable/ or no minimum)
name  [R]  The name of the argument
required  [R]  A default value to suggest for the argument
type  [R]  The type of the argument (a symbol)
values  [R]  A list of values to provide for the argument (for list-types)

Included Modules

Public Class methods

Public Instance methods

[Validate]