Class: Gdk::Key
Overview
class EventKey
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(key) ⇒ Object
-
#initialize(keyval) ⇒ Key
constructor
A new instance of Key.
-
#inspect ⇒ Object
def ==.
Constructor Details
#initialize(keyval) ⇒ Key
Returns a new instance of Key.
104 105 106 107 |
# File 'lib/tagen/gtk2.rb', line 104 def initialize keyval @code = keyval @name = Keyval.to_name(keyval).downcase.to_sym end |