Class: Ibex::LALR::IELR::Annotation
- Inherits:
-
Struct
- Object
- Struct
- Ibex::LALR::IELR::Annotation
- Defined in:
- lib/ibex/lalr/ielr/inadequacy.rb,
sig/ibex/lalr/ielr/inadequacy.rbs
Instance Attribute Summary collapse
-
#inadequacy ⇒ Object
Returns the value of attribute inadequacy.
-
#matrix ⇒ Object
Returns the value of attribute matrix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inadequacy:, matrix:) ⇒ Annotation
constructor
A new instance of Annotation.
- #key ⇒ [ Integer, Array[Integer?] ]
Constructor Details
#initialize(inadequacy:, matrix:) ⇒ Annotation
Returns a new instance of Annotation.
19 20 21 22 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 19 def initialize(inadequacy:, matrix:) super(inadequacy: inadequacy, matrix: matrix.freeze) freeze end |
Instance Attribute Details
#inadequacy ⇒ Object
Returns the value of attribute inadequacy
18 19 20 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 18 def inadequacy @inadequacy end |
#matrix ⇒ Object
Returns the value of attribute matrix
18 19 20 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 18 def matrix @matrix end |
Class Method Details
.new ⇒ instance
19 |
# File 'sig/ibex/lalr/ielr/inadequacy.rbs', line 19
def self.new: (inadequacy: Inadequacy, matrix: Array[Integer?]) -> instance
|
Instance Method Details
#key ⇒ [ Integer, Array[Integer?] ]
24 25 26 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 24 def key [inadequacy.id, matrix] end |