class AsyncPartial::HamlArrayBuffer

Public Instance Methods

html_safe() click to toggle source
# File lib/async_partial/handlers/haml.rb, line 5
def html_safe
  map {|v| AsyncPartial::AsyncResult === v ? v.value : v}.join.html_safe
end
rstrip!() click to toggle source
# File lib/async_partial/handlers/haml.rb, line 9
def rstrip!
  if last.frozen?
    if (stripped = last.dup.rstrip!)
      self[-1] = stripped
    end
  else
    last.rstrip!
  end
  if last.blank?
    last.pop
    rstrip!
  end
  self
end