Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/events.rb

38 lines
668 B
Ruby
Raw Normal View History

2017-07-21 13:03:06 -04:00
# frozen_string_literal: true
module Events
2017-07-21 13:10:17 -04:00
module Window
class Base; end
class Left < Base; end
class Right < Base; end
end
2017-07-21 13:03:06 -04:00
module Panel
2017-07-21 13:04:30 -04:00
class Base; end
2017-07-21 13:05:38 -04:00
class Up < Base; end
2017-07-21 13:04:30 -04:00
class Down < Base; end
2017-07-21 13:03:06 -04:00
end
module Text
2017-07-21 13:04:30 -04:00
class Base; end
2017-07-21 13:05:58 -04:00
class Left < Base; end
class Right < Base; end
class Home < Base; end
class End < Base; end
class Backspace < Base; end
class Delete < Base; end
2017-07-21 13:04:30 -04:00
class Putc < Base
2017-07-21 13:03:06 -04:00
attr_reader :char
def initialize(char)
raise TypeError unless char.is_a?(String) && char.size == 1
@char = char.freeze
end
end
end
end