Class: Fdlint::Parser::JS::IfStatement
- Defined in:
- lib/fdlint/parser/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.
121 122 123 124 |
# File 'lib/fdlint/parser/js/struct.rb', line 121 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.
117 118 119 |
# File 'lib/fdlint/parser/js/struct.rb', line 117 def false_part @false_part end |