Class: AlTime
- Inherits:
-
AlTimestamp
- Object
- AlWidget
- AlTimestamp
- AlTime
- Defined in:
- lib/al_form.rb
Overview
Note:
時刻ウィジェット
時分秒を扱う内部的には日付を2000年に固定したTimeオブジェクトで保存する。
Constant Summary collapse
- STRFTIME_FORMAT =
"%H:%M:%S"
Instance Attribute Summary
Attributes inherited from AlTimestamp
Attributes inherited from AlWidget
#filter, #foreign, #hidden, #label, #message, #name, #required, #tag_attr, #tag_type, #value, #value_format
Instance Method Summary collapse
-
#initialize(name, arg = {}) ⇒ AlTime
constructor
(AlTime) constructor.
Methods inherited from AlTimestamp
#make_tag, #make_value, #validate
Methods inherited from AlWidget
#make_tag, #make_value, #set_attr, #set_value
Constructor Details
#initialize(name, arg = {}) ⇒ AlTime
(AlTime) constructor
1683 1684 1685 1686 |
# File 'lib/al_form.rb', line 1683 def initialize( name, arg = {} ) super( name, arg ) @value = normalize( @value ) if @value.class == Time end |