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
2017-07-21 17:10:17 +00:00

37 lines
668 B
Ruby

# frozen_string_literal: true
module Events
module Window
class Base; end
class Left < Base; end
class Right < Base; end
end
module Panel
class Base; end
class Up < Base; end
class Down < Base; end
end
module Text
class Base; end
class Left < Base; end
class Right < Base; end
class Home < Base; end
class End < Base; end
class Backspace < Base; end
class Delete < Base; end
class Putc < Base
attr_reader :char
def initialize(char)
raise TypeError unless char.is_a?(String) && char.size == 1
@char = char.freeze
end
end
end
end