Sha256: 319034ec97d43e848906f482b21b425f5eacb51500e09ef1a59a5aab4cf7056a
Contents?: true
Size: 491 Bytes
Versions: 15
Compression:
Stored size: 491 Bytes
Contents
module TypeStation class BasePresenter def initialize(object, template) @object = object @template = template end private def self.presents(name) define_method(name) do @object end end def h @template end def markdown(text) Redcarpet.new(text, :hard_wrap, :filter_html, :autolink).to_html.html_safe end def method_missing(*args, &block) @template.send(*args, &block) end end end
Version data entries
15 entries across 15 versions & 1 rubygems