Class: Fdlint::Parser::JS::FunctionDeclaraion
- Defined in:
- lib/fdlint/parser/js/struct.rb
Overview
Function declaraion key word ‘function’ parsed as FunctionDeclaraion
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(name, parameters, body, pos) ⇒ FunctionDeclaraion
constructor
A new instance of FunctionDeclaraion.
Methods inherited from Element
Constructor Details
#initialize(name, parameters, body, pos) ⇒ FunctionDeclaraion
Returns a new instance of FunctionDeclaraion.
82 83 84 85 |
# File 'lib/fdlint/parser/js/struct.rb', line 82 def initialize(name, parameters, body, pos) super 'function', name, parameters, pos @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
78 79 80 |
# File 'lib/fdlint/parser/js/struct.rb', line 78 def body @body end |