Class: ScriptRunner::Commands::Ping
- Inherits:
-
Object
- Object
- ScriptRunner::Commands::Ping
- Defined in:
- lib/script-runner/cmds.rb
Instance Method Summary collapse
-
#initialize ⇒ Ping
constructor
A new instance of Ping.
- #run(msg, options = { :reverse => false }) ⇒ Object
Constructor Details
#initialize ⇒ Ping
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, = { :reverse => false }) if [:reverse] msg.reverse else msg end end |