Module: Kombu::Renderable

Extended by:
ActiveSupport::Concern
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/kombu/renderable.rb

Instance Method Summary collapse

Instance Method Details

#kombu_component_tagObject



24
25
26
27
# File 'lib/kombu/renderable.rb', line 24

def kombu_component_tag
  return "" if @kombu_component.nil?
  tag(@kombu_component, @kombu_attributes)
end

#kombu_javascript_entry_tagObject



29
30
31
32
# File 'lib/kombu/renderable.rb', line 29

def 
  raise_kombu_render_error_not_configured("javascript_entry_tag_proc") if .nil?
  instance_exec(&)
end

#kombu_render_component(component_name, entry_name: nil, mount_element_id: nil, attributes: {}) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/kombu/renderable.rb', line 14

def kombu_render_component(component_name, entry_name: nil, mount_element_id: nil, attributes: {})
  @kombu_component = component_name
  @kombu_attributes = attributes
  @kombu_entry = entry_name.presence || kombu_default_entry
  @kombu_mount_element_id = mount_element_id.presence || kombu_default_mount_element_id
  render kombu_render_option
rescue => error
  raise Kombu::RenderError, error.message
end

#kombu_stylesheet_entry_tagObject



34
35
36
37
# File 'lib/kombu/renderable.rb', line 34

def 
  raise_kombu_render_error_not_configured("stylesheet_entry_tag_proc") if .nil?
  instance_exec(&)
end