Sha256: d474e1e4119ec7879d67592ae4e84a2aa365482cd9913b9436d8d570a0201590

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

class Script::Step
  def initialize(headline, block)
    @headline = headline
    @block = block
  end

  def run(shareables)
    @block.call(shareables)
    @result = :succeded
  rescue
    @result = :failed
  end

  def result
    @result
  end

  def headline
    @headline
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
script-1.0.0 lib/script/step.rb
script-0.0.4 lib/script/step.rb