Class: Fdlint::Parser::JS::FunctionExpression
- Inherits:
-
Expression
- Object
- Element
- Expression
- Fdlint::Parser::JS::FunctionExpression
- Defined in:
- lib/fdlint/parser/js/struct.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(func) ⇒ FunctionExpression
constructor
A new instance of FunctionExpression.
Methods inherited from Expression
Methods inherited from Element
Constructor Details
#initialize(func) ⇒ FunctionExpression
Returns a new instance of FunctionExpression.
249 250 251 252 |
# File 'lib/fdlint/parser/js/struct.rb', line 249 def initialize(func) super 'function', func.name, func.parameters, func.position @body = func.body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
245 246 247 |
# File 'lib/fdlint/parser/js/struct.rb', line 245 def body @body end |