Class: Hiptest::Nodes::Call

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

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Node

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

Constructor Details

#initialize(actionword, arguments = [], annotation = nil) ⇒ Call

Returns a new instance of Call.



220
221
222
223
224
225
226
227
# File 'lib/hiptest-publisher/nodes.rb', line 220

def initialize(actionword, arguments = [], annotation = nil)
  super()
  annotation = nil if annotation == ""
  @children = {actionword: actionword, arguments: arguments, all_arguments: arguments, annotation: annotation}

  @chunks = []
  @extra_inlined_arguments = []
end

Instance Attribute Details

#chunksObject

Returns the value of attribute chunks.



217
218
219
# File 'lib/hiptest-publisher/nodes.rb', line 217

def chunks
  @chunks
end

#extra_inlined_argumentsObject

Returns the value of attribute extra_inlined_arguments.



217
218
219
# File 'lib/hiptest-publisher/nodes.rb', line 217

def extra_inlined_arguments
  @extra_inlined_arguments
end

Instance Method Details

#datatable_argObject



233
234
235
# File 'lib/hiptest-publisher/nodes.rb', line 233

def datatable_arg
  children[:arguments].find(&:datatable?)
end

#free_text_argObject



229
230
231
# File 'lib/hiptest-publisher/nodes.rb', line 229

def free_text_arg
  children[:arguments].find(&:free_text?)
end