Sha256: e4690143f3f7590134c23fd296fa04e5858dcf8486f9246f9d1dc0bf4eb36ef1

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

class ProconBypassMan::DeviceModel
  # @param [File] device
  def initialize(device)
    @device = device
  end

  # @param [String] raw_data
  def send(raw_data)
    @device.write_nonblock(raw_data)
  end

  # @raise [IO::EAGAINWaitReadable]
  # @return [String]
  def non_blocking_read
    @device.read_nonblock(64)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/device_model.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/device_model.rb