Sha256: a876d51d67e177d2976535154f8096ce8c9df3bcdfab7122889a742b8f6ff5fe

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module Pleiades
  module Command
    class BaseCommand
      def initialize event
        @event = event
        @success = nil
      end

      def call; end

      def success?
        @success
      end

      protected

      def success!
        @success = true
      end

      def fail!
        @success = false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pleiades-0.1.1 lib/pleiades/core/command/base_command.rb