Sha256: fd5a9ce20f09f035ffe435359f55dec4335d12ba5974725cb701e354ec713746
Contents?: true
Size: 306 Bytes
Versions: 17
Compression:
Stored size: 306 Bytes
Contents
class Module def markdown_on(*selectors) selectors.each { |selector| _define_markdown_on(selector) } end private def _define_markdown_on(selector) define_method("#{selector}_html".to_sym) do |*args| Mumukit::ContentType::Markdown.to_html self.send(selector, *args) end end end
Version data entries
17 entries across 17 versions & 1 rubygems