Class: Hiptest::Nodes::IfThen

Inherits:
Node
  • Object
show all
Defined in:
lib/hiptest-publisher/nodes.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Node

#==, #each_direct_children, #each_sub_nodes, #kind, #pretty_print_instance_variables, #project, #render

Constructor Details

#initialize(condition, then_, else_ = []) ⇒ IfThen

Returns a new instance of IfThen.



195
196
197
198
# File 'lib/hiptest-publisher/nodes.rb', line 195

def initialize(condition, then_, else_ = [])
  super()
  @children = {:condition => condition, :then => then_, :else => else_}
end