Class: Hiptest::Nodes::Actionword

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

Instance Attribute Summary

Attributes inherited from Item

#non_valued_parameters, #valued_parameters, #variables

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Item

#declared_variables_names

Methods inherited from Node

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

Constructor Details

#initialize(name, tags = [], parameters = [], body = [], uid = nil) ⇒ Actionword

Returns a new instance of Actionword.



260
261
262
263
# File 'lib/hiptest-publisher/nodes.rb', line 260

def initialize(name, tags = [], parameters = [], body = [], uid = nil)
  super(name, tags, parameters, body)
  @children[:uid] = uid
end

Instance Method Details

#must_be_implemented?Boolean

Returns:

  • (Boolean)


265
266
267
# File 'lib/hiptest-publisher/nodes.rb', line 265

def must_be_implemented?
  @children[:body].empty? || @children[:body].map {|step| step.class}.compact.include?(Hiptest::Nodes::Step)
end