Sha256: 811a3b551b53f7d2c9e86697d0a691a496b74728748d94f7d747496598d2d627

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'active_model'
require 'mask_validator'
require 'ostruct'

class Person < OpenStruct
  include ActiveModel::Validations
  validates :phone, mask: "(99) 9999-9999"
  validates :acronym, mask: "***"
  validates :alphanumeric, mask: "aaa999"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mask_validator-0.1 test/test_helper.rb