Module: RDKit::SimpleCommands

Included in:
RESPResponder
Defined in:
lib/rdkit/simple_commands.rb

Instance Method Summary collapse

Instance Method Details

#echo(message) ⇒ Object



7
8
9
# File 'lib/rdkit/simple_commands.rb', line 7

def echo(message)
  message
end

#pingObject



3
4
5
# File 'lib/rdkit/simple_commands.rb', line 3

def ping
  'PONG'
end

#timeObject



11
12
13
14
15
# File 'lib/rdkit/simple_commands.rb', line 11

def time
  t = Time.now

  [t.to_i, t.usec].map(&:to_s)
end