Class: CML::Tags::Unknown
Constant Summary
collapse
- Template =
<<-HTML.freeze
{{content}}
HTML
Instance Attribute Summary
Attributes inherited from CML::Tag
#attrs, #cml, #tag
Instance Method Summary
collapse
Methods inherited from CML::Tag
#children, #classes, #convert, #gold=, #gold?, #initialize, #instructions, #label, #legend, #name, #prefix, #raw_label, #to_html, #to_liquid, #to_s, #validations, #value, #wrapper
Constructor Details
This class inherits a constructor from CML::Tag
Instance Method Details
#data ⇒ Object
16
17
18
|
# File 'lib/cml/tags/unknown.rb', line 16
def data
super.merge({"content" => @cml.inner_html})
end
|
#validate? ⇒ Boolean
8
9
10
|
# File 'lib/cml/tags/unknown.rb', line 8
def validate?
false
end
|
#wrapper_classes ⇒ Object
12
13
14
|
# File 'lib/cml/tags/unknown.rb', line 12
def wrapper_classes
super + " unknown"
end
|