Class: VCFB::Component::TimeZoneSelect
- Defined in:
- lib/vcfb/component/time_zone_select.rb
Instance Method Summary collapse
- #form_element(options = {}, html_options = {}) ⇒ Object
-
#initialize(form, method, priority_zones = nil, options = {}, html_options = {}) ⇒ TimeZoneSelect
constructor
A new instance of TimeZoneSelect.
Methods inherited from Base
#collection_check_boxes, #collection_radio_buttons
Constructor Details
#initialize(form, method, priority_zones = nil, options = {}, html_options = {}) ⇒ TimeZoneSelect
Returns a new instance of TimeZoneSelect.
4 5 6 7 8 9 10 11 12 |
# File 'lib/vcfb/component/time_zone_select.rb', line 4 def initialize(form, method, priority_zones = nil, = {}, = {}) run_callbacks :initialize do @form = form @method = method @priority_zones = priority_zones @options = defined?(TagOptions::Hash) ? TagOptions::Hash.new() : @html_options = defined?(TagOptions::Hash) ? TagOptions::Hash.new() : end end |
Instance Method Details
#form_element(options = {}, html_options = {}) ⇒ Object
14 15 16 |
# File 'lib/vcfb/component/time_zone_select.rb', line 14 def form_element( = {}, = {}) time_zone_select(@form.object_name, @method, @priority_zones, , ) end |