Sha256: e1ad6a9c681367b82cdc5c3eda1c6bb35e9510d86abe92a854ed8602ef2e890c
Contents?: true
Size: 460 Bytes
Versions: 13
Compression:
Stored size: 460 Bytes
Contents
# Alpha #### Rules ```ruby # 1. Pattern :any => /^[A-Za-z]+$/ :lower => /^[a-z]+$/ :upper => /^[A-Z]+$/ ``` #### Options Option | Type | Available | Default --- | --- | --- | --- case | symbol | any, lower, upper | any allow_space | boolean | true, false | false #### Usage ```ruby class User < ActiveRecord::Base validates :input0, alpha: true validates :input1, alpha: { case: :lower } validates :input2, alpha: { allow_space: true } end ```
Version data entries
13 entries across 13 versions & 1 rubygems