Class: Plushie::Selection::State
- Inherits:
-
Data
- Object
- Data
- Plushie::Selection::State
- Includes:
- Model::Extensions
- Defined in:
- lib/plushie/selection.rb,
sig/plushie/selection.rbs
Overview
Immutable selection state.
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#selected ⇒ Object
readonly
Returns the value of attribute selected.
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
- #with ⇒ State
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
9 |
# File 'sig/plushie/selection.rbs', line 9
def initialize: (mode: Symbol, selected: Set[untyped], anchor: untyped, order: Array[untyped]) -> void
|
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor
22 23 24 |
# File 'lib/plushie/selection.rb', line 22 def anchor @anchor end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode
22 23 24 |
# File 'lib/plushie/selection.rb', line 22 def mode @mode end |
#order ⇒ Object (readonly)
Returns the value of attribute order
22 23 24 |
# File 'lib/plushie/selection.rb', line 22 def order @order end |
#selected ⇒ Object (readonly)
Returns the value of attribute selected
22 23 24 |
# File 'lib/plushie/selection.rb', line 22 def selected @selected end |