Sha256: 53f6cf62f7139d1acb59e61f19123a49e1122280ca8e80a83edae12f6034bad1

Contents?: true

Size: 675 Bytes

Versions: 6

Compression:

Stored size: 675 Bytes

Contents

# Translates Thor's example
# https://github.com/wycats/thor/wiki/Invocations
#
module Invoking

  class Counter

    def initialize(options); end
    
    def one
      puts 1
      Ing.invoke self.class, :two
      Ing.invoke self.class, :three
    end

    def two
      puts 2
      Ing.invoke self.class, :three
    end

    def three
      puts 3
    end
  end
  
end

module Executing

  class Counter

    def initialize(options); end
    
    def one
      puts 1
      Ing.execute self.class, :two
      Ing.execute self.class, :three
    end

    def two
      puts 2
      Ing.execute self.class, :three
    end

    def three
      puts 3
    end
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ing-0.2.7 test/fixtures/invok.ing.rb
ing-0.2.2 test/fixtures/invok.ing.rb
ing-0.2.1 test/fixtures/invok.ing.rb
ing-0.1.5 test/fixtures/invok.ing.rb
ing-0.1.2 test/fixtures/invok.ing.rb
ing-0.1.1 test/fixtures/invok.ing.rb