Class: XRay::JS::FunctionExpression
- Inherits:
-
Expression
- Object
- Element
- Expression
- XRay::JS::FunctionExpression
- Defined in:
- lib/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.
241 242 243 244 |
# File 'lib/js/struct.rb', line 241 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.
237 238 239 |
# File 'lib/js/struct.rb', line 237 def body @body end |