class ScriptRunner::Commands::Ping

Public Class Methods

new() click to toggle source
# File lib/script-runner/cmds.rb, line 6
def initialize
end

Public Instance Methods

run(msg, options = { :reverse => false }) click to toggle source
# File lib/script-runner/cmds.rb, line 9
def run(msg, options = { :reverse => false })
  if options[:reverse]
    msg.reverse
  else
    msg
  end
end