Class: XRay::JS::IfStatement
- Defined in:
- lib/js/struct.rb
Instance Attribute Summary collapse
-
#false_part ⇒ Object
readonly
Returns the value of attribute false_part.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(condition, true_part, false_part, position) ⇒ IfStatement
constructor
A new instance of IfStatement.
Methods inherited from Statement
#end_with_semicolon=, #end_with_semicolon?
Methods inherited from Element
Constructor Details
#initialize(condition, true_part, false_part, position) ⇒ IfStatement
Returns a new instance of IfStatement.
113 114 115 116 |
# File 'lib/js/struct.rb', line 113 def initialize(condition, true_part, false_part, position) super 'if', condition, true_part, position @false_part = false_part end |
Instance Attribute Details
#false_part ⇒ Object (readonly)
Returns the value of attribute false_part.
109 110 111 |
# File 'lib/js/struct.rb', line 109 def false_part @false_part end |