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



351
352
353
354
355
356
357
358
# File 'lib/hiptest-publisher/nodes.rb', line 351

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.



348
349
350
# File 'lib/hiptest-publisher/nodes.rb', line 348

def chunks
  @chunks
end

#extra_inlined_parametersObject

Returns the value of attribute extra_inlined_parameters.



348
349
350
# File 'lib/hiptest-publisher/nodes.rb', line 348

def extra_inlined_parameters
  @extra_inlined_parameters
end

#uniq_nameObject

Returns the value of attribute uniq_name.



348
349
350
# File 'lib/hiptest-publisher/nodes.rb', line 348

def uniq_name
  @uniq_name
end

Instance Method Details

#must_be_implemented?Boolean



360
361
362
# File 'lib/hiptest-publisher/nodes.rb', line 360

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