Class: Ruby2D::Window::KeyEvent
- Inherits:
-
Struct
- Object
- Struct
- Ruby2D::Window::KeyEvent
- Defined in:
- lib/ruby2d/window.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
14 15 16 |
# File 'lib/ruby2d/window.rb', line 14 def key @key end |
#type ⇒ Object
Returns the value of attribute type
14 15 16 |
# File 'lib/ruby2d/window.rb', line 14 def type @type end |
Instance Method Details
#key?(name) ⇒ Boolean
15 |
# File 'lib/ruby2d/window.rb', line 15 def key?(name) = key == name.to_s.downcase |