Sha256: 3542faad1f378ec7eb853280056e69cd5f931de286f89f43e218c3ac704ebd26

Contents?: true

Size: 271 Bytes

Versions: 15

Compression:

Stored size: 271 Bytes

Contents

module ScopedSearch
  # This class will be used to store standard validators.
  class Validators
    NUMERIC = ->(value) { !!(value =~ ScopedSearch::Definition::NUMERICAL_REGXP) }
    INTEGER = ->(value) { !!(value =~ ScopedSearch::Definition::INTEGER_REGXP) }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
scoped_search-4.1.13 lib/scoped_search/validators.rb
scoped_search-4.1.12 lib/scoped_search/validators.rb
scoped_search-4.1.11 lib/scoped_search/validators.rb
scoped_search-4.1.10 lib/scoped_search/validators.rb
scoped_search-4.1.9 lib/scoped_search/validators.rb
scoped_search-4.1.8 lib/scoped_search/validators.rb
scoped_search-4.1.7 lib/scoped_search/validators.rb
scoped_search-4.1.6 lib/scoped_search/validators.rb
scoped_search-4.1.5 lib/scoped_search/validators.rb
scoped_search-4.1.4 lib/scoped_search/validators.rb
scoped_search-4.1.3 lib/scoped_search/validators.rb
scoped_search-4.1.2 lib/scoped_search/validators.rb
scoped_search-4.1.1 lib/scoped_search/validators.rb
scoped_search-4.1.0 lib/scoped_search/validators.rb
scoped_search-4.0.0 lib/scoped_search/validators.rb