Class: Ruby::Rego::AST::Literal
- Defined in:
- lib/ruby/rego/ast/literal.rb
Overview
Base class for literal values.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value:, location: nil) ⇒ Literal
constructor
A new instance of Literal.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(value:, location: nil) ⇒ Literal
Returns a new instance of Literal.
12 13 14 15 |
# File 'lib/ruby/rego/ast/literal.rb', line 12 def initialize(value:, location: nil) super(location: location) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
18 19 20 |
# File 'lib/ruby/rego/ast/literal.rb', line 18 def value @value end |