Class: Hiptest::Nodes::Argument
- Defined in:
- lib/hiptest-publisher/nodes.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #datatable? ⇒ Boolean
- #free_text? ⇒ Boolean
-
#initialize(name, value) ⇒ Argument
constructor
A new instance of Argument.
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
211 212 213 |
# File 'lib/hiptest-publisher/nodes.rb', line 211 def datatable? @children[:name] == "__datatable" end |
#free_text? ⇒ Boolean
207 208 209 |
# File 'lib/hiptest-publisher/nodes.rb', line 207 def free_text? @children[:name] == "__free_text" end |