Sha256: 9fb1da2f0ca32b57eac4cdc53b995c959ae8b1283884a5a0a982143f0518eff2

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

# Ein Koordinatenpaar für ein zweidimensionales Koordinatensystem.
class Coordinates

  # X-Koordinate
  attr_reader :x
  # Y-Koordinate
  attr_reader :y

  # Erstellt ein neues Koordinatenpaar aus X- und Y-Koordinate.
  def initialize(x, y)
    @x = x
    @y = y
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
software_challenge_client-19.1.0 lib/software_challenge_client/coordinates.rb
software_challenge_client-19.0.4 lib/software_challenge_client/coordinates.rb
software_challenge_client-19.0.3 lib/software_challenge_client/coordinates.rb
software_challenge_client-19.0.2 lib/software_challenge_client/coordinates.rb
software_challenge_client-19.0.1 lib/software_challenge_client/coordinates.rb
software_challenge_client-19.0.0 lib/software_challenge_client/coordinates.rb