class Haml::Ambles
Public Class Methods
Source
# File lib/haml/ambles.rb, line 6 def initialize(*) super @preamble = options[:preamble] @postamble = options[:postamble] end
Calls superclass method
Public Instance Methods
Source
# File lib/haml/ambles.rb, line 12 def call(ast) ret = [:multi] ret << [:static, @preamble] if @preamble ret << ast ret << [:static, @postamble] if @postamble ret end