Module: Mumukit::ContentType::Html
Class Method Summary
collapse
as_json, format_exception, to_html, to_s
Class Method Details
.code(code) ⇒ Object
8
9
10
|
# File 'lib/mumukit/content_type/html.rb', line 8
def self.code(code)
"<pre>#{code}</pre>"
end
|
.enumerate(items) ⇒ Object
20
21
22
23
|
# File 'lib/mumukit/content_type/html.rb', line 20
def self.enumerate(items)
add_list_tags(items) unless items.empty?
items.join("\n")
end
|
.htmlize(content, _options) ⇒ Object
12
13
14
|
# File 'lib/mumukit/content_type/html.rb', line 12
def self.htmlize(content, _options)
content
end
|
.name ⇒ Object
16
17
18
|
# File 'lib/mumukit/content_type/html.rb', line 16
def self.name
'html'
end
|
.title(title) ⇒ Object
4
5
6
|
# File 'lib/mumukit/content_type/html.rb', line 4
def self.title(title)
"<strong>#{title}</strong>"
end
|