Class: XRay::JS::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.
74 75 76 77 |
# File 'lib/js/struct.rb', line 74 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.
70 71 72 |
# File 'lib/js/struct.rb', line 70 def body @body end |