Class: Vcfb::ComponentsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Vcfb::ComponentsGenerator
- Defined in:
- lib/generators/vcfb/components/components_generator.rb
Instance Method Summary collapse
- #create_button_component ⇒ Object
- #create_check_box_component ⇒ Object
- #create_collection_check_boxes_component ⇒ Object
- #create_collection_radio_buttons_component ⇒ Object
- #create_collection_select_component ⇒ Object
- #create_color_field_component ⇒ Object
- #create_date_field_component ⇒ Object
- #create_date_select_component ⇒ Object
- #create_datetime_field_component ⇒ Object
- #create_datetime_select_component ⇒ Object
- #create_email_field_component ⇒ Object
- #create_file_field_component ⇒ Object
- #create_form_component ⇒ Object
- #create_grouped_collection_select_component ⇒ Object
- #create_label_component ⇒ Object
- #create_month_field_component ⇒ Object
- #create_number_field_component ⇒ Object
- #create_password_field_component ⇒ Object
- #create_radio_button_component ⇒ Object
- #create_range_field_component ⇒ Object
- #create_rich_text_area_component ⇒ Object
- #create_search_field_component ⇒ Object
- #create_select_component ⇒ Object
- #create_submit_component ⇒ Object
- #create_telephone_field_component ⇒ Object
- #create_text_area_component ⇒ Object
- #create_text_field_component ⇒ Object
- #create_time_field_component ⇒ Object
- #create_time_select_component ⇒ Object
- #create_time_zone_select_component ⇒ Object
- #create_url_field_component ⇒ Object
- #create_week_field_component ⇒ Object
- #create_weekday_select_component ⇒ Object
Instance Method Details
#create_button_component ⇒ Object
10 11 12 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 10 def directory "button", "#{destination}/button" end |
#create_check_box_component ⇒ Object
14 15 16 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 14 def create_check_box_component directory "check_box", "#{destination}/check_box" end |
#create_collection_check_boxes_component ⇒ Object
18 19 20 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 18 def create_collection_check_boxes_component directory "collection_check_boxes", "#{destination}/collection_check_boxes" end |
#create_collection_radio_buttons_component ⇒ Object
22 23 24 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 22 def directory "collection_radio_buttons", "#{destination}/collection_radio_buttons" end |
#create_collection_select_component ⇒ Object
26 27 28 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 26 def create_collection_select_component directory "collection_select", "#{destination}/collection_select" end |
#create_color_field_component ⇒ Object
30 31 32 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 30 def create_color_field_component directory "color_field", "#{destination}/color_field" end |
#create_date_field_component ⇒ Object
34 35 36 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 34 def create_date_field_component directory "date_field", "#{destination}/date_field" end |
#create_date_select_component ⇒ Object
38 39 40 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 38 def create_date_select_component directory "date_select", "#{destination}/date_select" end |
#create_datetime_field_component ⇒ Object
42 43 44 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 42 def create_datetime_field_component directory "datetime_field", "#{destination}/datetime_field" end |
#create_datetime_select_component ⇒ Object
46 47 48 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 46 def create_datetime_select_component directory "datetime_select", "#{destination}/datetime_select" end |
#create_email_field_component ⇒ Object
50 51 52 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 50 def create_email_field_component directory "email_field", "#{destination}/email_field" end |
#create_file_field_component ⇒ Object
54 55 56 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 54 def create_file_field_component directory "file_field", "#{destination}/file_field" end |
#create_form_component ⇒ Object
140 141 142 143 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 140 def create_form_component copy_file "component.html.erb", "#{destination}/component.html.erb" template "component.rb.tt", "#{destination}/component.rb" end |
#create_grouped_collection_select_component ⇒ Object
58 59 60 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 58 def create_grouped_collection_select_component directory "grouped_collection_select", "#{destination}/grouped_collection_select" end |
#create_label_component ⇒ Object
62 63 64 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 62 def create_label_component directory "label", "#{destination}/label" end |
#create_month_field_component ⇒ Object
66 67 68 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 66 def create_month_field_component directory "month_field", "#{destination}/month_field" end |
#create_number_field_component ⇒ Object
70 71 72 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 70 def create_number_field_component directory "number_field", "#{destination}/number_field" end |
#create_password_field_component ⇒ Object
74 75 76 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 74 def create_password_field_component directory "password_field", "#{destination}/password_field" end |
#create_radio_button_component ⇒ Object
78 79 80 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 78 def directory "radio_button", "#{destination}/radio_button" end |
#create_range_field_component ⇒ Object
82 83 84 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 82 def create_range_field_component directory "range_field", "#{destination}/range_field" end |
#create_rich_text_area_component ⇒ Object
86 87 88 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 86 def create_rich_text_area_component directory "rich_text_area", "#{destination}/rich_text_area" end |
#create_search_field_component ⇒ Object
90 91 92 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 90 def create_search_field_component directory "search_field", "#{destination}/search_field" end |
#create_select_component ⇒ Object
94 95 96 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 94 def create_select_component directory "select", "#{destination}/select" end |
#create_submit_component ⇒ Object
98 99 100 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 98 def create_submit_component directory "submit", "#{destination}/submit" end |
#create_telephone_field_component ⇒ Object
102 103 104 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 102 def create_telephone_field_component directory "telephone_field", "#{destination}/telephone_field" end |
#create_text_area_component ⇒ Object
106 107 108 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 106 def create_text_area_component directory "text_area", "#{destination}/text_area" end |
#create_text_field_component ⇒ Object
110 111 112 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 110 def create_text_field_component directory "text_field", "#{destination}/text_field" end |
#create_time_field_component ⇒ Object
114 115 116 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 114 def create_time_field_component directory "time_field", "#{destination}/time_field" end |
#create_time_select_component ⇒ Object
118 119 120 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 118 def create_time_select_component directory "time_select", "#{destination}/time_select" end |
#create_time_zone_select_component ⇒ Object
122 123 124 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 122 def create_time_zone_select_component directory "time_zone_select", "#{destination}/time_zone_select" end |
#create_url_field_component ⇒ Object
126 127 128 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 126 def create_url_field_component directory "url_field", "#{destination}/url_field" end |
#create_week_field_component ⇒ Object
130 131 132 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 130 def create_week_field_component directory "week_field", "#{destination}/week_field" end |
#create_weekday_select_component ⇒ Object
135 136 137 |
# File 'lib/generators/vcfb/components/components_generator.rb', line 135 def create_weekday_select_component directory "weekday_select", "#{destination}/weekday_select" end |