Class: Parameter
Defined in: | src/nodes/parameter.coffee |
Inherits: | Node |
Overview
The Node representation of a CoffeeScript method parameter.
Instance Method Summary
- ::constructor(node, options, optionized) Constructor Construct a parameter node.
- String ::getDefault(i = -1) Get the parameter default value
- String ::getName(i = -1) Get the parameter name
- String ::getOptionizedDefaults() Gets the defaults of the optionized parameters.
- String ::getSignature() Get the full parameter signature.
- Boolean ::isSplat() Checks if the parameters is a splat
- Object ::toJSON(i = -1) Get a JSON representation of the object
Inherited Method Summary
Methods inherited from Node
Constructor Details
::constructor(node, options, optionized) Source
Construct a parameter node.
Instance Method Details
String ::getDefault(i = -1) Source
Get the parameter default value
String ::getName(i = -1) Source
Get the parameter name
String ::getOptionizedDefaults() Source
Gets the defaults of the optionized parameters.
String ::getSignature() Source
Get the full parameter signature.
Boolean ::isSplat() Source
Checks if the parameters is a splat
Object ::toJSON(i = -1) Source
Get a JSON representation of the object