Sha256: 4d3154a60bda79b38069ff6217c7431c80e45efb4b6bd0da955ae4609450ce0c

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

require 'tap/task'

module Tap
  module Tasks
    # :startdoc::task raises an error
    #
    # Error raises a Runtime error when called.  The input specifies the
    # error message.
    #
    class Error < Tap::Task 
      def process(msg=nil)
        raise msg
      end
    end 
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tap-tasks-0.8.0 lib/tap/tasks/error.rb
tap-tasks-0.7.0 lib/tap/tasks/error.rb