Sha256: cd1a2ca6bbac4fd61d6f1e42a0494beeeddc77904f9f39e94c4156a0e7d2466a

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

module JustBackgammon

  # = WrongPhaseError
  #
  # A wrong phase error with a message
  class WrongPhaseError

    # A new instance of WrongPhaseError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new WrongPhaseError
    #   JustBackgammon::WrongPhaseError.new("Custom Message")
    def initialize(message="It is the wrong phase.")
      @message = message
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
just_backgammon-1.1.0 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/wrong_phase_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/wrong_phase_error.rb