Class: Vedeu::YCoordinate Private

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/support/y_coordinate.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Provide delegation methods for Vedeu::Geometries::Geometry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geometry) ⇒ Vedeu::YCoordinate

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:



13
14
15
# File 'lib/vedeu/support/y_coordinate.rb', line 13

def initialize(geometry)
  @geometry = geometry
end

Instance Attribute Details

#geometryVedeu::Geometries::Geometry (readonly, protected)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



53
54
55
# File 'lib/vedeu/support/y_coordinate.rb', line 53

def geometry
  @geometry
end

Instance Method Details

#bdFixnum Also known as: by

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return the :by value from the geometry.

Returns:

  • (Fixnum)


28
29
30
# File 'lib/vedeu/support/y_coordinate.rb', line 28

def bd
  geometry.by
end

#bdnFixnum Also known as: byn

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return the :byn value from the geometry.

Returns:

  • (Fixnum)


36
37
38
# File 'lib/vedeu/support/y_coordinate.rb', line 36

def bdn
  geometry.byn
end

#dFixnum Also known as: y

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return the :y value from the geometry.

Returns:

  • (Fixnum)


20
21
22
# File 'lib/vedeu/support/y_coordinate.rb', line 20

def d
  geometry.y
end

#d_dnFixnum Also known as: bordered_height

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return the :bordered_height value from the geometry.

Returns:

  • (Fixnum)


44
45
46
# File 'lib/vedeu/support/y_coordinate.rb', line 44

def d_dn
  geometry.bordered_height
end