Class: Hiptest::Nodes::Argument

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

Instance Attribute Summary

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(name, value) ⇒ Argument

Returns a new instance of Argument.



202
203
204
205
# File 'lib/hiptest-publisher/nodes.rb', line 202

def initialize(name, value)
  super()
  @children = {name: name, value: value}
end

Instance Method Details

#datatable?Boolean

Returns:

  • (Boolean)


211
212
213
# File 'lib/hiptest-publisher/nodes.rb', line 211

def datatable?
  @children[:name] == "__datatable"
end

#free_text?Boolean

Returns:

  • (Boolean)


207
208
209
# File 'lib/hiptest-publisher/nodes.rb', line 207

def free_text?
  @children[:name] == "__free_text"
end