Sha256: f0d35da0e86df33e10a7c2ed5756632e24651ac1b9643924e502c7217f264384

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

class AddThenMultiplyCommand
  prepend EasyCommand

  def call
    sum = assert_subcommand AdditionCommand, @a, @b
    assert_subcommand MultiplicationCommand, sum, @c
  end

  def initialize(a,b,c)
    @a = a
    @b = b
    @c = c
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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