Sha256: 4cddb8632bf8e68bfa10895ca3ab277203acda4d578bbc0979110ef32bb9fafd

Contents?: true

Size: 303 Bytes

Versions: 11

Compression:

Stored size: 303 Bytes

Contents

module Mumukit::ContentType::Html
  extend Mumukit::ContentType::BaseContentType

  def self.title(title)
    "<strong>#{title}</strong>"
  end

  def self.code(code)
    "<pre>#{code}</pre>"
  end

  def self.to_html(content)
    content.html_safe if content
  end

  def self.name
    'html'
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mumukit-content-type-1.3.1 lib/mumukit/content_type/html.rb
mumukit-content-type-1.3.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.2.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.1.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.0.0 lib/mumukit/content_type/html.rb
mumukit-content-type-0.6.0 lib/mumukit/content_type/html.rb
mumukit-content-type-0.5.1 lib/mumukit/content_type/html.rb
mumukit-content-type-0.5.0 lib/mumukit/content_type/html.rb
mumukit-content-type-0.4.0 lib/mumukit/content_type/html.rb
mumukit-content-type-0.3.0 lib/mumukit/content_type/html.rb
mumukit-content-type-0.2.1 lib/mumukit/content_type/html.rb