Class: AlMail
Overview
メールアドレス入力ウィジェット
Instance Method Summary (collapse)
-
- (AlMail) initialize(name, arg = {})
constructor
(AlMail) constractor.
Methods inherited from AlText
#make_tag, #set_value, #validate
Methods inherited from AlWidget
#make_value, #set_attr, #set_value
Constructor Details
- (AlMail) initialize(name, arg = {})
(AlMail) constractor
1298 1299 1300 1301 1302 1303 1304 |
# File 'lib/al_form.rb', line 1298 def initialize( name, arg = {} ) part = %r([a-zA-Z0-9_\#!$%&`'*+\-{|}~^/=?\.]+) super( name, arg ) @filter = 'value.strip' @validator = %r(\A#{part}@#{part}\z) end |