Class: XRay::JS::FunctionDeclaraion

Inherits:
Element
  • Object
show all
Defined in:
lib/js/struct.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#left, #right, #type

Instance Method Summary collapse

Methods inherited from Element

#contains?, #position, #text

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

#bodyObject (readonly)

Returns the value of attribute body.



70
71
72
# File 'lib/js/struct.rb', line 70

def body
  @body
end