class Aureus::Renderable
Public Class Methods
new(content)
click to toggle source
# File lib/aureus/renderable.rb, line 9 def initialize(content) @content = content end
Public Instance Methods
compact(*args)
click to toggle source
# File lib/aureus/renderable.rb, line 21 def compact(*args) args.join.html_safe end
compact_render(*args)
click to toggle source
# File lib/aureus/renderable.rb, line 25 def compact_render(*args) args.map{ |e| e.render }.join.html_safe end
content_tag(name, content_or_options_with_block=nil, options=nil, escape=false, &block)
click to toggle source
Calls superclass method
# File lib/aureus/renderable.rb, line 17 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
init(args, *defaults)
click to toggle source
# File lib/aureus/renderable.rb, line 13 def init(args, *defaults) @options = defaults.extract_options!.merge(args.extract_options!) end
render()
click to toggle source
# File lib/aureus/renderable.rb, line 29 def render @content end