Class: Emjay::Components::MjFont
Instance Attribute Summary
#attributes, #context, #props
Class Method Summary
collapse
Instance Method Summary
collapse
#handler_children
default_attributes, ending_tag?, #get_attribute, #get_child_context, #get_content, #initialize, raw_element?
Class Method Details
.allowed_attributes ⇒ Object
13
14
15
|
# File 'lib/emjay/components/head/mj_font.rb', line 13
def self.allowed_attributes
{"name" => "string", "href" => "string"}
end
|
.component_name ⇒ Object
9
10
11
|
# File 'lib/emjay/components/head/mj_font.rb', line 9
def self.component_name
"mj-font"
end
|
Instance Method Details
#handler ⇒ Object
17
18
19
|
# File 'lib/emjay/components/head/mj_font.rb', line 17
def handler
@context[:add].call(:fonts, get_attribute("name"), get_attribute("href"))
end
|