Sha256: 878026ffa0ce96e1cf4c330af6104012178421996cdc67c27ac9b7af3d729691
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
# frozen_string_literal: true module Vedeu # Provide delegation methods for Vedeu::Geometries::Geometry. # # @api private # class YCoordinate # @param geometry [Vedeu::Geometries::Geometry] # @return [Vedeu::XCoordinate] def initialize(geometry) @geometry = geometry end # Return the :y value from the geometry. # # @return [Fixnum] def d geometry.y end alias y d # Return the :by value from the geometry. # # @return [Fixnum] def bd geometry.by end alias by bd # Return the :byn value from the geometry. # # @return [Fixnum] def bdn geometry.byn end alias byn bdn # Return the :bordered_height value from the geometry. # # @return [Fixnum] def d_dn geometry.bordered_height end alias bordered_height d_dn protected # @!attribute [r] geometry # @return [Vedeu::Geometries::Geometry] attr_reader :geometry end # YCoordinate end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.9 | lib/vedeu/support/y_coordinate.rb |