Class: EventMachine::EvmaKeyboard

Inherits:
StreamObject show all
Defined in:
lib/pr_eventmachine.rb

Instance Attribute Summary

Attributes inherited from Selectable

#io, #uuid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from StreamObject

#eventable_read, #eventable_write, #get_outbound_data_size, #get_peername, #heartbeat, #schedule_close, #send_data

Methods inherited from Selectable

#close_scheduled?, #get_peername, #heartbeat, #set_inactivity_timeout

Constructor Details

#initialize(io) ⇒ EvmaKeyboard

Returns a new instance of EvmaKeyboard.



708
709
710
# File 'lib/pr_eventmachine.rb', line 708

def initialize io
  super
end

Class Method Details

.openObject



703
704
705
# File 'lib/pr_eventmachine.rb', line 703

def self.open
  EvmaKeyboard.new STDIN
end

Instance Method Details

#select_for_reading?Boolean

Returns:

  • (Boolean)


717
718
719
# File 'lib/pr_eventmachine.rb', line 717

def select_for_reading?
  true
end

#select_for_writing?Boolean

Returns:

  • (Boolean)


713
714
715
# File 'lib/pr_eventmachine.rb', line 713

def select_for_writing?
  false
end