Class: Ibex::LALR::IELR::Inadequacy
- Inherits:
-
Struct
- Object
- Struct
- Ibex::LALR::IELR::Inadequacy
- Defined in:
- lib/ibex/lalr/ielr/inadequacy.rb,
sig/ibex/lalr/ielr/inadequacy.rbs
Instance Attribute Summary collapse
-
#contributions ⇒ Object
Returns the value of attribute contributions.
-
#id ⇒ Object
Returns the value of attribute id.
-
#state ⇒ Object
Returns the value of attribute state.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state:, token:, contributions:, id:) ⇒ Inadequacy
constructor
A new instance of Inadequacy.
Constructor Details
#initialize(state:, token:, contributions:, id:) ⇒ Inadequacy
Returns a new instance of Inadequacy.
11 12 13 14 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 11 def initialize(state:, token:, contributions:, id:) super(state: state, token: token, contributions: contributions.freeze, id: id) freeze end |
Instance Attribute Details
#contributions ⇒ Object
Returns the value of attribute contributions
10 11 12 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10 def contributions @contributions end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10 def id @id end |
#state ⇒ Object
Returns the value of attribute state
10 11 12 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10 def state @state end |
#token ⇒ Object
Returns the value of attribute token
10 11 12 |
# File 'lib/ibex/lalr/ielr/inadequacy.rb', line 10 def token @token end |
Class Method Details
.new ⇒ instance
13 |
# File 'sig/ibex/lalr/ielr/inadequacy.rbs', line 13
def self.new: (state: Integer, token: Integer, contributions: Array[contribution], id: Integer) -> instance
|