Class: RLSL::Prism::IR::BoolLiteral

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

Constructor Details

#initialize(value) ⇒ BoolLiteral

Returns a new instance of BoolLiteral.



59
60
61
62
63
# File 'lib/rlsl/prism/ir/expressions.rb', line 59

def initialize(value)
  super()
  @value = value
  @type = :bool
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



55
56
57
# File 'lib/rlsl/prism/ir/expressions.rb', line 55

def value
  @value
end