Sha256: 06f939b78c4b8388b1b2e83bc0692096326fc11d226c961a82548c10bbc12ec2

Contents?: true

Size: 282 Bytes

Versions: 9

Compression:

Stored size: 282 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.htmlize(content)
    content
  end

  def self.name
    'html'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mumukit-content-type-1.8.1 lib/mumukit/content_type/html.rb
mumukit-content-type-1.8.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.7.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.6.1 lib/mumukit/content_type/html.rb
mumukit-content-type-1.6.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.5.1 lib/mumukit/content_type/html.rb
mumukit-content-type-1.5.0 lib/mumukit/content_type/html.rb
mumukit-content-type-1.4.1 lib/mumukit/content_type/html.rb
mumukit-content-type-1.4.0 lib/mumukit/content_type/html.rb