Sha256: 90b7f660ef599883d9efe0bbf44e1b09674e9312400a564e14b14fada1508459

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

module Space
  class View
    class Progress < View
      def initialize(*)
        Events.subscribe(self, :start, :update)
        super
        render
      end

      private

        def render
          clear
          render_header
        end

        def on_start
          render
        end

        def on_update
          print '.'
        end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
space-0.0.9 lib/space/view/progress.rb
space-0.0.8 lib/space/view/progress.rb
space-0.0.7 lib/space/view/progress.rb