Class: Hiptest::Nodes::Literal

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

Direct Known Subclasses

BooleanLiteral, NumericLiteral, StringLiteral

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(value) ⇒ Literal

Returns a new instance of Literal.



95
96
97
98
# File 'lib/hiptest-publisher/nodes.rb', line 95

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