Class: Budgie::Settings
- Inherits:
-
Object
- Object
- Budgie::Settings
- Defined in:
- lib/budgie/settings.rb
Instance Attribute Summary collapse
-
#free_mouse_mode_key ⇒ Object
readonly
Returns the value of attribute free_mouse_mode_key.
-
#keymap ⇒ Object
readonly
Returns the value of attribute keymap.
-
#palette_key ⇒ Object
readonly
Returns the value of attribute palette_key.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/budgie/settings.rb', line 4 def initialize @keymap = { "\e" => 'escape', 'w' => 'forward', 's' => 'backward', 'a' => 'left', 'd' => 'right', ' ' => 'up', 'c' => 'down' } @free_mouse_mode_key = 'f' @palette_key = 'e' end |
Instance Attribute Details
#free_mouse_mode_key ⇒ Object (readonly)
Returns the value of attribute free_mouse_mode_key.
2 3 4 |
# File 'lib/budgie/settings.rb', line 2 def free_mouse_mode_key @free_mouse_mode_key end |
#keymap ⇒ Object (readonly)
Returns the value of attribute keymap.
2 3 4 |
# File 'lib/budgie/settings.rb', line 2 def keymap @keymap end |
#palette_key ⇒ Object (readonly)
Returns the value of attribute palette_key.
2 3 4 |
# File 'lib/budgie/settings.rb', line 2 def palette_key @palette_key end |