Class: Hiptest::Nodes::Parameter
- Inherits:
-
Node
- Object
- Node
- Hiptest::Nodes::Parameter
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, default = nil) ⇒ Parameter
Returns a new instance of Parameter.
291
292
293
294
|
# File 'lib/hiptest-publisher/nodes.rb', line 291
def initialize(name, default = nil)
super()
@children = {name: name, default: default}
end
|
Instance Method Details
#datatable? ⇒ Boolean
308
309
310
|
# File 'lib/hiptest-publisher/nodes.rb', line 308
def datatable?
@children[:name] == "__datatable"
end
|
#free_text? ⇒ Boolean
304
305
306
|
# File 'lib/hiptest-publisher/nodes.rb', line 304
def free_text?
@children[:name] == "__free_text"
end
|
#type ⇒ Object
296
297
298
299
300
301
302
|
# File 'lib/hiptest-publisher/nodes.rb', line 296
def type
if @children[:type].nil?
'String'
else
@children[:type].to_s
end
end
|