Sha256: 35121e795a3733130a7be91849c8a086b3753ed02ab7cd501513467a1b310ef6

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

# encoding: UTF-8
# @author Ralf-Tobias Diekert
# A debug hint, that can be added to a move
class DebugHint

  # @!attribute [r] content
  # @return [String] a hint
  attr_reader :content

  # @overload initialize
  #   Creates an empty hint
  # @overload initialize(key, value)
  #   Creates a hint with a key and a value
  #   @param key Key of the hint
  #   @param value of the hint
  # @overload initialize(content)
  #   Creates a hint with specified content
  #   @param content of the hint
  def initialize

  end

  def initialize(key, value)
    if key.nil?
      self.content = "#{value}"
    else
      self.content = "#{key} = #{value}"
    end
  end

  def initialize(content)
    self.content = "#{content}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
software_challenge_client-0.1.5 lib/software_challenge_client/debug_hint.rb
software_challenge_client-0.1.4 lib/software_challenge_client/debug_hint.rb
software_challenge_client-0.1.3 lib/software_challenge_client/debug_hint.rb