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

31 lines
543 B
Ruby
Raw Normal View History

2017-07-21 13:03:06 -04:00
# frozen_string_literal: true
module Events
module Panel
2017-07-21 13:04:30 -04:00
class Base; end
class Up < Base; end
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
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
2017-07-21 13:04:30 -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:03:06 -04:00
end
end