Class: Ibex::Runtime::CST::Blender::Candidate
- Inherits:
-
Object
- Object
- Ibex::Runtime::CST::Blender::Candidate
- Defined in:
- lib/ibex/runtime/cst/incremental/blender.rb
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
: ReusableSubtree.
-
#token_count ⇒ Object
readonly
: Integer.
Instance Method Summary collapse
-
#initialize(entry:, token_count:) ⇒ Candidate
constructor
A new instance of Candidate.
Constructor Details
#initialize(entry:, token_count:) ⇒ Candidate
Returns a new instance of Candidate.
34 35 36 37 38 |
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 34 def initialize(entry:, token_count:) @entry = entry @token_count = token_count freeze end |
Instance Attribute Details
#entry ⇒ Object (readonly)
: ReusableSubtree
30 31 32 |
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 30 def entry @entry end |
#token_count ⇒ Object (readonly)
: Integer
31 32 33 |
# File 'lib/ibex/runtime/cst/incremental/blender.rb', line 31 def token_count @token_count end |