Class: Hiptest::Nodes::Call
Instance Attribute Summary collapse
-
#chunks ⇒ Object
Returns the value of attribute chunks.
-
#extra_inlined_arguments ⇒ Object
Returns the value of attribute extra_inlined_arguments.
Attributes inherited from Node
Instance Method Summary collapse
- #datatable_arg ⇒ Object
- #free_text_arg ⇒ Object
-
#initialize(actionword, arguments = [], annotation = nil) ⇒ Call
constructor
A new instance of Call.
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
#chunks ⇒ Object
Returns the value of attribute chunks.
217 218 219 |
# File 'lib/hiptest-publisher/nodes.rb', line 217 def chunks @chunks end |
#extra_inlined_arguments ⇒ Object
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_arg ⇒ Object
233 234 235 |
# File 'lib/hiptest-publisher/nodes.rb', line 233 def datatable_arg children[:arguments].find(&:datatable?) end |
#free_text_arg ⇒ Object
229 230 231 |
# File 'lib/hiptest-publisher/nodes.rb', line 229 def free_text_arg children[:arguments].find(&:free_text?) end |