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