Code Coverage
 
Lines
Covered
100.00% covered (success)
100.00%
15 / 15
1
module TheFox
1
module TermKit
##
# Typically used to handle user keystrokes.
1
class KeyEvent
1
attr_accessor :key
1
def initialize
6
super()
6
@key = nil
end
1
def to_s
2
@key.to_s
end
1
def inspect
2
s = "#<#{self.class}"
2
unless @key.nil?
1
s << "->#{@key.ord}[#{@key}]"
end
2
s << '>'
2
s
end
end
end
end