Class: Plushie::KeyModifiers::Mods Private
- Inherits:
-
Data
- Object
- Data
- Plushie::KeyModifiers::Mods
- Defined in:
- lib/plushie/key_modifiers.rb,
sig/plushie/key_modifiers.rbs
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Internal modifier state storage.
Instance Attribute Summary collapse
-
#alt ⇒ Object
readonly
private
Returns the value of attribute alt.
-
#command ⇒ Object
readonly
private
Returns the value of attribute command.
-
#ctrl ⇒ Object
readonly
private
Returns the value of attribute ctrl.
-
#logo ⇒ Object
readonly
private
Returns the value of attribute logo.
-
#shift ⇒ Object
readonly
private
Returns the value of attribute shift.
Instance Method Summary collapse
-
#initialize ⇒ Mods
constructor
private
A new instance of Mods.
- #to_h ⇒ Hash[Symbol, bool] private
Constructor Details
#initialize ⇒ Mods
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Mods.
10 |
# File 'sig/plushie/key_modifiers.rbs', line 10
def initialize: (ctrl: bool, shift: bool, alt: bool, logo: bool, command: bool) -> void
|
Instance Attribute Details
#alt ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the value of attribute alt
26 27 28 |
# File 'lib/plushie/key_modifiers.rb', line 26 def alt @alt end |
#command ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the value of attribute command
26 27 28 |
# File 'lib/plushie/key_modifiers.rb', line 26 def command @command end |
#ctrl ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the value of attribute ctrl
26 27 28 |
# File 'lib/plushie/key_modifiers.rb', line 26 def ctrl @ctrl end |
#logo ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the value of attribute logo
26 27 28 |
# File 'lib/plushie/key_modifiers.rb', line 26 def logo @logo end |
#shift ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the value of attribute shift
26 27 28 |
# File 'lib/plushie/key_modifiers.rb', line 26 def shift @shift end |
Instance Method Details
#to_h ⇒ Hash[Symbol, bool]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 |
# File 'sig/plushie/key_modifiers.rbs', line 11
def to_h: () -> Hash[Symbol, bool]
|