Sha256: aec159499dad3c9feff15a062be838b1088b126dcfdfe23b5a369655ba86fdce

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

module Fasten
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fasten-0.5.4 lib/fasten/state.rb