Class: Strling::Core::IRAnchor
Overview
Represents an anchor position assertion in the IR.
Anchors match positions rather than characters.
Instance Attribute Summary collapse
-
#at ⇒ String
The anchor type.
Instance Method Summary collapse
-
#initialize(at) ⇒ IRAnchor
constructor
A new instance of IRAnchor.
- #to_dict ⇒ Object
Constructor Details
#initialize(at) ⇒ IRAnchor
Returns a new instance of IRAnchor.
104 105 106 |
# File 'lib/strling/core/ir.rb', line 104 def initialize(at) @at = at end |
Instance Attribute Details
#at ⇒ String
Returns The anchor type.
101 102 103 |
# File 'lib/strling/core/ir.rb', line 101 def at @at end |
Instance Method Details
#to_dict ⇒ Object
108 109 110 |
# File 'lib/strling/core/ir.rb', line 108 def to_dict { 'ir' => 'Anchor', 'at' => at } end |