Class: Bade::AST::StaticTextNode

Inherits:
Node show all
Defined in:
lib/bade/ast/node/static_text_node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #filename, #lineno, #parent, #type

Instance Method Summary collapse

Methods inherited from Node

#initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Bade::AST::Node

Instance Attribute Details

#escapedBool

Returns:

  • (Bool)


14
15
16
# File 'lib/bade/ast/node/static_text_node.rb', line 14

def escaped
  @escaped
end

#valueString

Returns:



10
11
12
# File 'lib/bade/ast/node/static_text_node.rb', line 10

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object

Parameters:



24
25
26
# File 'lib/bade/ast/node/static_text_node.rb', line 24

def ==(other)
  super && value == other.value && escaped == other.escaped
end