Module: Ruby2html::RailsHelper
- Defined in:
- lib/gem/ruby2html/rails_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/gem/ruby2html/rails_helper.rb', line 9 def self.included(base) base.helper_method :html end |
Instance Method Details
#html(context, &block) ⇒ Object
5 6 7 |
# File 'lib/gem/ruby2html/rails_helper.rb', line 5 def html(context, &block) Ruby2html::Render.new(context, &block).render.html_safe end |