Class: Emjay::Components::MjPreview
Instance Attribute Summary
#attributes, #context, #props
Class Method Summary
collapse
Instance Method Summary
collapse
#handler_children
allowed_attributes, default_attributes, #get_attribute, #get_child_context, #get_content, #initialize, raw_element?
Class Method Details
.component_name ⇒ Object
9
10
11
|
# File 'lib/emjay/components/head/mj_preview.rb', line 9
def self.component_name
"mj-preview"
end
|
.ending_tag? ⇒ Boolean
13
14
15
|
# File 'lib/emjay/components/head/mj_preview.rb', line 13
def self.ending_tag?
true
end
|
Instance Method Details
#handler ⇒ Object
17
18
19
|
# File 'lib/emjay/components/head/mj_preview.rb', line 17
def handler
@context[:add].call(:preview, get_content)
end
|