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)
Construct a parameter node.
Instance Method Details
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