Sha256: 877e1c41202e69bf0fb9c9665b69dfd6eaf65938817368bef7b3cd3791bc6c0f
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
# Author:: Murali Raju (<murali.raju@appliv.com>) # Copyright:: Copyright (c) 2011 Murali Raju. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # class Formatter def print_progress_bar_long puts '' bar = ProgressBar.new 100.times do sleep 0.075 bar.increment! end puts '' end def print_progress_bar_short puts '' bar = ProgressBar.new 100.times do sleep 0.0055 bar.increment! end puts '' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swift-manager-0.0.4 | lib/formatter.rb |