Class: Tiletanic::Coords

Inherits:
Struct
  • Object
show all
Defined in:
lib/tiletanic/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCoords

Returns a new instance of Coords.



12
13
14
15
# File 'lib/tiletanic/base.rb', line 12

def initialize(...)
  super
  freeze
end

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



11
12
13
# File 'lib/tiletanic/base.rb', line 11

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



11
12
13
# File 'lib/tiletanic/base.rb', line 11

def y
  @y
end