Class: Hiptest::Nodes::IfThen
- Defined in:
- lib/hiptest-publisher/nodes.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(condition, then_, else_ = []) ⇒ IfThen
constructor
A new instance of IfThen.
Methods inherited from Node
#==, #each_direct_children, #each_sub_nodes, #flat_string, #kind, #pretty_print_instance_variables, #project, #render
Constructor Details
#initialize(condition, then_, else_ = []) ⇒ IfThen
Returns a new instance of IfThen.
239 240 241 242 |
# File 'lib/hiptest-publisher/nodes.rb', line 239 def initialize(condition, then_, else_ = []) super() @children = {condition: condition, then: then_, else: else_} end |