Sha256: c8a46413f49f6de71ceb7bc177b2924e7c78baec3d5fcc15f54459a251470b6c

Contents?: true

Size: 468 Bytes

Versions: 13

Compression:

Stored size: 468 Bytes

Contents

module Fasten
  module Support
    module State
      attr_accessor :error, :ini, :fin, :dif, :last
      attr_writer :state

      def state
        @state || :IDLE
      end

      def running?
        state == :RUNNING
      end

      def idle?
        state == :IDLE
      end

      def pausing?
        state == :PAUSING
      end

      def paused?
        state == :PAUSED
      end

      def quitting?
        state == :QUITTING
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fasten-0.12.4 lib/fasten/support/state.rb
fasten-0.12.2 lib/fasten/support/state.rb
fasten-0.12.0 lib/fasten/support/state.rb
fasten-0.10.0 lib/fasten/support/state.rb
fasten-0.8.8 lib/fasten/support/state.rb
fasten-0.8.6 lib/fasten/support/state.rb
fasten-0.8.4 lib/fasten/support/state.rb
fasten-0.8.0 lib/fasten/support/state.rb
fasten-0.7.6 lib/fasten/support/state.rb
fasten-0.7.4 lib/fasten/support/state.rb
fasten-0.7.2 lib/fasten/support/state.rb
fasten-0.7.0 lib/fasten/support/state.rb
fasten-0.6.0 lib/fasten/support/state.rb