Class: Strling::Core::IRLit
Overview
Represents a literal string match in the IR.
Matches the exact string value provided.
Instance Attribute Summary collapse
-
#value ⇒ String
The literal string value.
Instance Method Summary collapse
-
#initialize(value) ⇒ IRLit
constructor
A new instance of IRLit.
- #to_dict ⇒ Object
Constructor Details
#initialize(value) ⇒ IRLit
Returns a new instance of IRLit.
78 79 80 |
# File 'lib/strling/core/ir.rb', line 78 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String
Returns The literal string value.
75 76 77 |
# File 'lib/strling/core/ir.rb', line 75 def value @value end |
Instance Method Details
#to_dict ⇒ Object
82 83 84 |
# File 'lib/strling/core/ir.rb', line 82 def to_dict { 'ir' => 'Lit', 'value' => value } end |