Class: EventMachine::EvmaKeyboard
- Inherits:
-
StreamObject
- Object
- Selectable
- StreamObject
- EventMachine::EvmaKeyboard
- Defined in:
- lib/em/pure_ruby.rb
Instance Attribute Summary
Attributes inherited from Selectable
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(io) ⇒ EvmaKeyboard
constructor
A new instance of EvmaKeyboard.
- #select_for_reading? ⇒ Boolean
- #select_for_writing? ⇒ Boolean
Methods inherited from StreamObject
#eventable_read, #eventable_write, #get_outbound_data_size, #get_peername, #get_sockname, #heartbeat, #send_data
Methods inherited from Selectable
#close_scheduled?, #get_peername, #get_sockname, #heartbeat, #schedule_close, #set_inactivity_timeout
Constructor Details
#initialize(io) ⇒ EvmaKeyboard
Returns a new instance of EvmaKeyboard.
990 991 992 |
# File 'lib/em/pure_ruby.rb', line 990 def initialize io super end |
Class Method Details
.open ⇒ Object
985 986 987 |
# File 'lib/em/pure_ruby.rb', line 985 def self.open EvmaKeyboard.new STDIN end |
Instance Method Details
#select_for_reading? ⇒ Boolean
999 1000 1001 |
# File 'lib/em/pure_ruby.rb', line 999 def select_for_reading? true end |
#select_for_writing? ⇒ Boolean
995 996 997 |
# File 'lib/em/pure_ruby.rb', line 995 def select_for_writing? false end |