Class: Bade::AST::ValueNode

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

Direct Known Subclasses

DoctypeNode

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

#conditionalBool

Returns:

  • (Bool)


18
19
20
# File 'lib/bade/ast/node/value_node.rb', line 18

def conditional
  @conditional
end

#default_valueString?

Returns:



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

def default_value
  @default_value
end

#escapedBool

Returns:

  • (Bool)


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

def escaped
  @escaped
end

#valueString

Returns:



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

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object

Parameters:



34
35
36
37
38
39
40
# File 'lib/bade/ast/node/value_node.rb', line 34

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