In Files

Parent

Class/Module Index [+]

Quicksearch

Helper

Public Class Methods

accept(cmd) click to toggle source
# File spec/setup.rb, line 20
def self.accept(cmd)
  c = TCPSocket.new('localhost', 9292)
  c.puts cmd.to_s
  return JSON.parse(c.read) rescue nil
end
clear() click to toggle source
# File spec/setup.rb, line 28
def self.clear
  accept :clear
end
exit() click to toggle source
# File spec/setup.rb, line 31
def self.exit
  accept :exit
end
history() click to toggle source
# File spec/setup.rb, line 25
def self.history
  accept :history
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.