Module: Mumukit::ContentType::Html
- Extended by:
- BaseContentType
- Defined in:
- lib/mumukit/content_type/html.rb
Class Method Summary collapse
Methods included from BaseContentType
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 |
.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 |
.to_html(content) ⇒ Object
12 13 14 |
# File 'lib/mumukit/content_type/html.rb', line 12 def self.to_html(content) content.html_safe if content end |