Sha256: 0744e6856b638f00af7878225b954c1b2b92c98c7df16d427be4a871de022caf

Contents?: true

Size: 182 Bytes

Versions: 5

Compression:

Stored size: 182 Bytes

Contents

class FailureCommand
  prepend EasyCommand

  def initialize(input)
    @input = input
  end

  def call
    errors.add(:base, :some_error, 'Error message')
    @input * 2
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
easy_command-1.0.1 spec/factories/failure_command.rb
easy_command-1.0.0 spec/factories/failure_command.rb
easy_command-1.0.0.pre.rc3 spec/factories/failure_command.rb
easy_command-1.0.0.pre.rc2 spec/factories/failure_command.rb
easy_command-1.0.0.pre.rc1 spec/factories/failure_command.rb