Sha256: 4479c52ebd44e701f76b9288f7c6a79e943f2cb5cb5c0e91458f948d23bd93d0

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

module Pcli
  class CommandOutput
    class << self
      def halt
        new(true)
      end

      def continue
        new(false)
      end
    end

    def initialize(halt)
      @halt = halt
    end

    def halt?
      @halt
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pcli-0.1.1 lib/pcli/command_output.rb
pcli-0.1.0 lib/pcli/command_output.rb