Class Parameter
Defined in: | src/nodes/parameter.coffee |
Inherits: | Node |
Overview
Public: The Node representation of a CoffeeScript method parameter.
Instance Method Summary
- ::constructor(node, options, optionized) 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
Instance Method Details
String ::getDefault(i = -1) Source
Public: Get the parameter default value
Returns the default (a String).
String ::getOptionizedDefaults() Source
Public: Gets the defaults of the optionized parameters.
Returns the defaults as a String.
String ::getSignature() Source
Public: Get the full parameter signature.
Returns the signature (a String).