Class: AlPassword

Inherits:
AlText show all
Defined in:
lib/al_form.rb

Overview

パスワードウィジェット

Instance Attribute Summary

Attributes inherited from AlText

#max, #min, #validator

Attributes inherited from AlWidget

#filter, #foreign, #hidden, #label, #message, #name, #required, #tag_attr, #tag_type, #value

Instance Method Summary collapse

Methods inherited from AlText

#set_value, #validate

Methods inherited from AlWidget

#make_tag, #set_attr, #set_value

Constructor Details

#initialize(name, arg = {}) ⇒ AlPassword

(AlPassword) constructor

Parameters:

  • name (String)

    ウィジェット識別名 英文字を推奨

  • arg (Hash) (defaults to: {})

    引数ハッシュ

See Also:



844
845
846
847
# File 'lib/al_form.rb', line 844

def initialize( name, arg = {} )
  @tag_type ||= "password"
  super( name, arg )
end

Instance Method Details

#make_value(*arg) ⇒ String

Note:

表示しない

(AlPassword) HTML値の生成

Returns:

  • (String)

    html文字列



856
857
858
# File 'lib/al_form.rb', line 856

def make_value( *arg )
  return '********'
end