class Cuprum::Collections::Constraints::Order::AttributesArray

Asserts that the object is an Array of attribute names.

Public Class Methods

instance() click to toggle source

@return [Cuprum::Collections::Constraints::Order::AttributesArray] a

cached instance of the constraint with default options.
# File lib/cuprum/collections/constraints/order/attributes_array.rb, line 13
def self.instance
  @instance ||= new
end
new(**options) click to toggle source

@param options [Hash<Symbol, Object>] Configuration options for the

constraint. Defaults to an empty Hash.
Calls superclass method
# File lib/cuprum/collections/constraints/order/attributes_array.rb, line 19
def initialize(**options)
  super(
    item_type: Cuprum::Collections::Constraints::AttributeName.instance,
    **options
  )
end