Class: Plushie::KeyModifiers::Mods Private

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeMods

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.

Parameters:

  • ctrl: (Boolean)
  • shift: (Boolean)
  • alt: (Boolean)
  • logo: (Boolean)
  • command: (Boolean)


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

#altObject (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

Returns:

  • (Object)

    the current value of alt



26
27
28
# File 'lib/plushie/key_modifiers.rb', line 26

def alt
  @alt
end

#commandObject (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

Returns:

  • (Object)

    the current value of command



26
27
28
# File 'lib/plushie/key_modifiers.rb', line 26

def command
  @command
end

#ctrlObject (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

Returns:

  • (Object)

    the current value of ctrl



26
27
28
# File 'lib/plushie/key_modifiers.rb', line 26

def ctrl
  @ctrl
end

#logoObject (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

Returns:

  • (Object)

    the current value of logo



26
27
28
# File 'lib/plushie/key_modifiers.rb', line 26

def 
  @logo
end

#shiftObject (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

Returns:

  • (Object)

    the current value of shift



26
27
28
# File 'lib/plushie/key_modifiers.rb', line 26

def shift
  @shift
end

Instance Method Details

#to_hHash[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.

Returns:

  • (Hash[Symbol, bool])


11
# File 'sig/plushie/key_modifiers.rbs', line 11

def to_h: () -> Hash[Symbol, bool]