class TheFox::TermKit::KeyEvent

Typically used to handle user keystrokes.

Attributes

key[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/termkit/event/event_key.rb, line 11
def initialize
    super()
    
    @key = nil
end

Public Instance Methods

inspect() click to toggle source
# File lib/termkit/event/event_key.rb, line 21
def inspect
    s = "#<#{self.class}"
    unless @key.nil?
        s << "->#{@key.ord}[#{@key}]"
    end
    s << '>'
    s
end
to_s() click to toggle source
# File lib/termkit/event/event_key.rb, line 17
def to_s
    @key.to_s
end