Sha256: e40934949a0c1cbe87ae27e34f1d5284bc4b610075e0c1a236122102732006b1

Contents?: true

Size: 1013 Bytes

Versions: 23

Compression:

Stored size: 1013 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  # Provide delegation methods for Vedeu::Geometries::Geometry.
  #
  # @api private
  #
  class XCoordinate

    # @param geometry [Vedeu::Geometries::Geometry]
    # @return [Vedeu::XCoordinate]
    def initialize(geometry)
      @geometry = geometry
    end

    # Return the :x value from the geometry.
    #
    # @return [Fixnum]
    def d
      geometry.x
    end
    alias x d

    # Return the :bx value from the geometry.
    #
    # @return [Fixnum]
    def bd
      geometry.bx
    end
    alias bx bd

    # Return the :bxn value from the geometry.
    #
    # @return [Fixnum]
    def bdn
      geometry.bxn
    end
    alias bxn bdn

    # Return the :bordered_width value from the geometry.
    #
    # @return [Fixnum]
    def d_dn
      geometry.bordered_width
    end
    alias bordered_width d_dn

    protected

    # @!attribute [r] geometry
    # @return [Vedeu::Geometries::Geometry]
    attr_reader :geometry

  end # XCoordinate

end # Vedeu

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.31 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.30 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.29 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.28 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.27 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.26 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.25 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.24 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.23 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.22 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.21 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.20 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.19 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.18 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.17 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.16 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.15 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.14 lib/vedeu/support/x_coordinate.rb
vedeu-0.8.13 lib/vedeu/support/x_coordinate.rb