Sha256: 3f3b5d898a1ab9ae02c2e395bac093c35157fb95e0b19eeca5372f418f7657c0

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

module Sequins
  class Step
    attr_reader :target, :step_name

    def initialize(target, sequence, step_name)
      @target = target
      @sequence = sequence
      @step_name = step_name
    end

    def end_sequence
      @ended = true
    end

    def delay(duration, options)
      @sequence.delay(duration, target, options)
    end

    def sequence_ended?
      @ended
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sequins-0.1.6 lib/sequins/step.rb
sequins-0.1.5 lib/sequins/step.rb
sequins-0.1.4 lib/sequins/step.rb
sequins-0.1.3 lib/sequins/step.rb
sequins-0.1.2 lib/sequins/step.rb