Class: Hiptest::Nodes::Actionword

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

Instance Attribute Summary collapse

Attributes inherited from Item

#non_valued_parameters, #valued_parameters, #variables

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Item

#add_tags, #declared_variables_names

Methods inherited from Node

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

Constructor Details

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

Returns a new instance of Actionword.



331
332
333
334
335
336
337
338
# File 'lib/hiptest-publisher/nodes.rb', line 331

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

  @chunks = []
  @extra_inlined_parameters = []
  @uniq_name = name
end

Instance Attribute Details

#chunksObject

Returns the value of attribute chunks.



328
329
330
# File 'lib/hiptest-publisher/nodes.rb', line 328

def chunks
  @chunks
end

#extra_inlined_parametersObject

Returns the value of attribute extra_inlined_parameters.



328
329
330
# File 'lib/hiptest-publisher/nodes.rb', line 328

def extra_inlined_parameters
  @extra_inlined_parameters
end

#uniq_nameObject

Returns the value of attribute uniq_name.



328
329
330
# File 'lib/hiptest-publisher/nodes.rb', line 328

def uniq_name
  @uniq_name
end

Instance Method Details

#must_be_implemented?Boolean

Returns:

  • (Boolean)


340
341
342
# File 'lib/hiptest-publisher/nodes.rb', line 340

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