Parent

Capybara::Webkit::Connection

Attributes

port[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/capybara/webkit/connection.rb, line 13
def initialize(options = {})
  @socket_class = options[:socket_class] || TCPSocket
  @output_target = options.has_key?(:stdout) ? options[:stdout] : $stdout
  start_server
  connect
end

Public Instance Methods

gets() click to toggle source
# File lib/capybara/webkit/connection.rb, line 28
def gets
  @socket.gets
end
puts(string) click to toggle source
# File lib/capybara/webkit/connection.rb, line 20
def puts(string)
  @socket.puts string
end
read(length) click to toggle source
# File lib/capybara/webkit/connection.rb, line 32
def read(length)
  @socket.read(length)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.