Sha256: de6bb35704679a7542c6d180ecb63dd9dd7f7286ba3b3db80823e5d5c9269464

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

module Valle

  Bound = Struct.new :minimum, :maximum

  class BoundMapper

    ##
    # Returns a new bound for the column
    #
    # @param [Column] column the column
    #
    def bound(column)
      Bound.new minimum(column), maximum(column)
    end

    private

    ##
    # Get the lower limit for a given column
    #
    # @param [Column] column the column
    #
    def minimum(column)

    end

    ##
    # Get the upper limit for a given column
    #
    # @param [Column] column the column
    #
    def maximum(column)
      column.limit
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
valle-0.0.1 lib/valle/bound_mapper.rb