Module: Eclipsed

Included in:
Core
Defined in:
lib/eclipsed.rb,
lib/eclipsed/version.rb

Defined Under Namespace

Classes: CLI_driver, Core

Constant Summary collapse

VERSION =
"0.6.7"

Instance Method Summary collapse

Instance Method Details

print_async {{{



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/eclipsed.rb', line 9

def print_async(msg) 
  Thread.new(msg) do |m|
    print "#{m} "
    loop do
      print "\b\\"
      sleep 0.3
      print "\b-"
      sleep 0.3
      print "\b/"
      sleep 0.3
    end
  end
end