Class: XRay::JS::TryStatement
- Defined in:
- lib/js/struct.rb
Instance Attribute Summary collapse
-
#finally_part ⇒ Object
readonly
Returns the value of attribute finally_part.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(try_part, catch_part, finally_part, pos) ⇒ TryStatement
constructor
A new instance of TryStatement.
Methods inherited from Statement
#end_with_semicolon=, #end_with_semicolon?
Methods inherited from Element
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_part ⇒ Object (readonly)
Returns the value of attribute finally_part.
179 180 181 |
# File 'lib/js/struct.rb', line 179 def finally_part @finally_part end |