Sha256: d3b98c1b061e3e6c35dae102b00a4733d57613cc0eb9876b0aa865e83c0d099c
Contents?: true
Size: 890 Bytes
Versions: 5
Compression:
Stored size: 890 Bytes
Contents
module Aureus class Renderable include ActionView::Context include ActionView::Helpers::TagHelper include ActionView::Helpers::CaptureHelper include ActionView::Helpers::UrlHelper include Haml::Helpers def initialize content @content = content end def init args, *defaults @options = defaults.extract_options!.merge args.extract_options! end def content_tag name, content_or_options_with_block = nil, options = nil, escape = false, &block super name, content_or_options_with_block, options, escape, &block end def compact *args out = String.new.html_safe args.each do |i| out += i end out end def compact_render *args out = String.new.html_safe args.each do |i| out += i.render end out end def render @content end end end
Version data entries
5 entries across 5 versions & 1 rubygems