Class: RUI::Markdown::Safe

Inherits:
Base
  • Object
show all
Defined in:
lib/rui/markdown/safe.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RUI::Base

Instance Method Details

#view_template(&block) ⇒ Object



4
5
6
7
8
# File 'lib/rui/markdown/safe.rb', line 4

def view_template(&block)
  article(class: "prose") do
    RUI::Markdown::Generator.instance.get_safe(capture(&block))
  end
end