module Sphyg
Top-level namespace
Constants
- THROBBERS
- VERSION
Public Class Methods
pulse(message, options = nil) { |blk| ... }
click to toggle source
Presents a message and throbber Params:
message
-
friendly
string
to display that indicates a command is running
for example, 'Please wait'
options
-
configuration
hash
- +&blk+
-
a
block
containing a long-running command to run while displaying
the message and throbber
# File lib/sphyg.rb, line 51 def self.pulse(message, options = nil, &blk) ::Sphyg::Pulse.new(message, options).run { yield blk } end