Class: ScriptRunner::Commands::Ping

Inherits:
Object
  • Object
show all
Defined in:
lib/script-runner/cmds.rb

Instance Method Summary collapse

Constructor Details

#initializePing

Returns a new instance of Ping.



6
7
# File 'lib/script-runner/cmds.rb', line 6

def initialize
end

Instance Method Details

#run(msg, options = { :reverse => false }) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/script-runner/cmds.rb', line 9

def run(msg, options = { :reverse => false })
  if options[:reverse]
    msg.reverse
  else
    msg
  end
end