Class: XRay::JS::TryStatement

Inherits:
Statement 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 Statement

#end_with_semicolon=, #end_with_semicolon?

Methods inherited from Element

#contains?, #position, #text

Constructor Details

#initialize(try_part, catch_part, finally_part, pos) ⇒ TryStatement

Returns a new instance of TryStatement.



183
184
185
186
# File 'lib/js/struct.rb', line 183

def initialize(try_part, catch_part, finally_part, pos)
  super 'try', try_part, catch_part, pos
  @finally_part = finally_part
end

Instance Attribute Details

#finally_partObject (readonly)

Returns the value of attribute finally_part.



179
180
181
# File 'lib/js/struct.rb', line 179

def finally_part
  @finally_part
end