Class: RademadeAdmin::TemplateService
- Inherits:
-
Object
- Object
- RademadeAdmin::TemplateService
- Defined in:
- app/services/template_service.rb
Instance Attribute Summary collapse
-
#cancel_button ⇒ Object
Returns the value of attribute cancel_button.
-
#form_block ⇒ Object
Returns the value of attribute form_block.
-
#form_control_block ⇒ Object
Returns the value of attribute form_control_block.
-
#form_lang_panel_block ⇒ Object
Returns the value of attribute form_lang_panel_block.
-
#form_separator_block ⇒ Object
Returns the value of attribute form_separator_block.
-
#header_block ⇒ Object
Returns the value of attribute header_block.
-
#index_template ⇒ Object
Returns the value of attribute index_template.
-
#inner_form_layout ⇒ Object
Returns the value of attribute inner_form_layout.
-
#inner_layout ⇒ Object
Returns the value of attribute inner_layout.
-
#main_layout ⇒ Object
Returns the value of attribute main_layout.
-
#menu_block ⇒ Object
Returns the value of attribute menu_block.
-
#on_page_select_block ⇒ Object
Returns the value of attribute on_page_select_block.
-
#pagination_block ⇒ Object
Returns the value of attribute pagination_block.
-
#search_block ⇒ Object
Returns the value of attribute search_block.
-
#sort_reset_block ⇒ Object
Returns the value of attribute sort_reset_block.
-
#sub_menu_block ⇒ Object
Returns the value of attribute sub_menu_block.
-
#sub_menu_link_block ⇒ Object
Returns the value of attribute sub_menu_link_block.
-
#table_head_block ⇒ Object
Returns the value of attribute table_head_block.
Instance Method Summary collapse
-
#initialize(root_dir) ⇒ TemplateService
constructor
A new instance of TemplateService.
- #template_path(*directories) ⇒ Object
Constructor Details
#initialize(root_dir) ⇒ TemplateService
Returns a new instance of TemplateService.
24 25 26 |
# File 'app/services/template_service.rb', line 24 def initialize(root_dir) @root_dir = root_dir end |
Instance Attribute Details
#cancel_button ⇒ Object
Returns the value of attribute cancel_button.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def @cancel_button end |
#form_block ⇒ Object
Returns the value of attribute form_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def form_block @form_block end |
#form_control_block ⇒ Object
Returns the value of attribute form_control_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def form_control_block @form_control_block end |
#form_lang_panel_block ⇒ Object
Returns the value of attribute form_lang_panel_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def form_lang_panel_block @form_lang_panel_block end |
#form_separator_block ⇒ Object
Returns the value of attribute form_separator_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def form_separator_block @form_separator_block end |
#header_block ⇒ Object
Returns the value of attribute header_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def header_block @header_block end |
#index_template ⇒ Object
Returns the value of attribute index_template.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def index_template @index_template end |
#inner_form_layout ⇒ Object
Returns the value of attribute inner_form_layout.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def inner_form_layout @inner_form_layout end |
#inner_layout ⇒ Object
Returns the value of attribute inner_layout.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def inner_layout @inner_layout end |
#main_layout ⇒ Object
Returns the value of attribute main_layout.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def main_layout @main_layout end |
#menu_block ⇒ Object
Returns the value of attribute menu_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def @menu_block end |
#on_page_select_block ⇒ Object
Returns the value of attribute on_page_select_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def on_page_select_block @on_page_select_block end |
#pagination_block ⇒ Object
Returns the value of attribute pagination_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def pagination_block @pagination_block end |
#search_block ⇒ Object
Returns the value of attribute search_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def search_block @search_block end |
#sort_reset_block ⇒ Object
Returns the value of attribute sort_reset_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def sort_reset_block @sort_reset_block end |
#sub_menu_block ⇒ Object
Returns the value of attribute sub_menu_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def @sub_menu_block end |
#sub_menu_link_block ⇒ Object
Returns the value of attribute sub_menu_link_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def @sub_menu_link_block end |
#table_head_block ⇒ Object
Returns the value of attribute table_head_block.
5 6 7 |
# File 'app/services/template_service.rb', line 5 def table_head_block @table_head_block end |
Instance Method Details
#template_path(*directories) ⇒ Object
28 29 30 |
# File 'app/services/template_service.rb', line 28 def template_path(*directories) "#{@root_dir}/#{directories.join('/')}" end |