Class: Vedeu::XCoordinate Private

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/support/x_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::XCoordinate

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/x_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/x_coordinate.rb', line 53

def geometry
  @geometry
end

Instance Method Details

#bdFixnum Also known as: bx

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 :bx value from the geometry.

Returns:

  • (Fixnum)


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

def bd
  geometry.bx
end

#bdnFixnum Also known as: bxn

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 :bxn value from the geometry.

Returns:

  • (Fixnum)


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

def bdn
  geometry.bxn
end

#dFixnum Also known as: x

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 :x value from the geometry.

Returns:

  • (Fixnum)


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

def d
  geometry.x
end

#d_dnFixnum Also known as: bordered_width

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_width value from the geometry.

Returns:

  • (Fixnum)


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

def d_dn
  geometry.bordered_width
end