Class: RademadeAdmin::TemplateService

Inherits:
Object
  • Object
show all
Defined in:
app/services/template_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_buttonObject

Returns the value of attribute cancel_button.



5
6
7
# File 'app/services/template_service.rb', line 5

def cancel_button
  @cancel_button
end

#form_blockObject

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_blockObject

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_blockObject

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_blockObject

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_blockObject

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_templateObject

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_layoutObject

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_layoutObject

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_layoutObject

Returns the value of attribute main_layout.



5
6
7
# File 'app/services/template_service.rb', line 5

def main_layout
  @main_layout
end

Returns the value of attribute menu_block.



5
6
7
# File 'app/services/template_service.rb', line 5

def menu_block
  @menu_block
end

#on_page_select_blockObject

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_blockObject

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_blockObject

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_blockObject

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

Returns the value of attribute sub_menu_block.



5
6
7
# File 'app/services/template_service.rb', line 5

def sub_menu_block
  @sub_menu_block
end

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
  @sub_menu_link_block
end

#table_head_blockObject

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