Class: Bade::AST::StaticTextNode

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

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #lineno, #type

Instance Method Summary collapse

Methods inherited from Node

#inspect, #to_s

Constructor Details

#initialize(*args) ⇒ StaticTextNode

Returns a new instance of StaticTextNode.



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

def initialize(*args)
  super

  @escaped = false
end

Instance Attribute Details

#escapedBool

Returns:

  • (Bool)


12
13
14
# File 'lib/bade/ast/node/static_text_node.rb', line 12

def escaped
  @escaped
end

#valueString

Returns:



8
9
10
# File 'lib/bade/ast/node/static_text_node.rb', line 8

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object

Parameters:



22
23
24
# File 'lib/bade/ast/node/static_text_node.rb', line 22

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