Class: Cuprum::Collections::Constraints::Order::AttributesArray
- Inherits:
-
Stannum::Constraints::Types::ArrayType
- Object
- Stannum::Constraints::Types::ArrayType
- Cuprum::Collections::Constraints::Order::AttributesArray
- Defined in:
- lib/cuprum/collections/constraints/order/attributes_array.rb
Overview
Asserts that the object is an Array of attribute names.
Class Method Summary collapse
-
.instance ⇒ Cuprum::Collections::Constraints::Order::AttributesArray
A cached instance of the constraint with default options.
Instance Method Summary collapse
-
#initialize(**options) ⇒ AttributesArray
constructor
A new instance of AttributesArray.
Constructor Details
#initialize(**options) ⇒ AttributesArray
Returns a new instance of AttributesArray.
19 20 21 22 23 24 |
# File 'lib/cuprum/collections/constraints/order/attributes_array.rb', line 19 def initialize(**) super( item_type: Cuprum::Collections::Constraints::AttributeName.instance, ** ) end |
Class Method Details
.instance ⇒ Cuprum::Collections::Constraints::Order::AttributesArray
Returns a cached instance of the constraint with default options.
13 14 15 |
# File 'lib/cuprum/collections/constraints/order/attributes_array.rb', line 13 def self.instance @instance ||= new end |