class Cuprum::Collections::Constraints::AttributeName

Asserts that the object is a non-empty String or Symbol.

Constants

NEGATED_TYPE

The :type of the error generated for a matching object.

TYPE

The :type of the error generated for a non-matching object.

Public Class Methods

instance() click to toggle source

@return [Cuprum::Collections::Constraints::AttributeName] a cached

instance of the constraint with default options.
# File lib/cuprum/collections/constraints/attribute_name.rb, line 18
def self.instance
  @instance ||= new
end