Class: Tiletanic::Tile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTile

Returns a new instance of Tile.



5
6
7
8
# File 'lib/tiletanic/base.rb', line 5

def initialize(...)
  super
  freeze
end

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



4
5
6
# File 'lib/tiletanic/base.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



4
5
6
# File 'lib/tiletanic/base.rb', line 4

def y
  @y
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



4
5
6
# File 'lib/tiletanic/base.rb', line 4

def z
  @z
end