Sha256: 2214343a448300bd14545c30f8e67b429ea2a9fd016690bcdc288ce436bd1577

Contents?: true

Size: 326 Bytes

Versions: 2

Compression:

Stored size: 326 Bytes

Contents

module Clamp
  class Subcommand

    module Execution

      # override default Command behaviour

      def execute
        # delegate to subcommand
        @subcommand.run(remaining_arguments)
      end

      def handle_remaining_arguments
        # no-op, because subcommand will handle them
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clamp-0.5.1 lib/clamp/subcommand/execution.rb
clamp-0.5.0 lib/clamp/subcommand/execution.rb