Sha256: 668f61a122837b68bfb67e536d51337738823fef9835b9a3073ddeed555f1f05

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

module Domainic
  module Type
    type accessor = :abs | :begin | :chars | :class | :count | :end | :entries | :first | :keys | :last | :length | :self | :size | :values

    # A list of valid access methods that can be used to retrieve values for constraint validation.
    # These methods represent common Ruby interfaces for accessing collection sizes, ranges, and values.
    #
    # - :abs                       - For absolute values
    # - :begin, :end               - For Range-like objects
    # - :class                     - For type checking
    # - :count, :length, :size     - For measuring collections
    # - :entries, :chars           - For accessing sequence elements
    # - :first, :last              - For accessing sequence endpoints
    # - :keys, :values             - For Hash-like objects
    # - :self                      - For operating directly on the value
    #
    # @author {https://aaronmallen.me Aaron Allen}
    # @since 0.1.0
    # @return [Array<Symbol>]
    ACCESSORS: Array[accessor]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
domainic-type-0.1.0.alpha.3.2.0 sig/domainic/type/accessors.rbs
domainic-type-0.1.0.alpha.3.1.0 sig/domainic/type/accessors.rbs
domainic-type-0.1.0.alpha.3.0.2 sig/domainic/type/accessors.rbs
domainic-type-0.1.0.alpha.3.0.1 sig/domainic/type/accessors.rbs
domainic-type-0.1.0.alpha.3.0.0 sig/domainic/type/accessors.rbs