Class: AsyncPartial::HamlArrayBuffer
- Inherits:
-
Array
- Object
- Array
- AsyncPartial::HamlArrayBuffer
- Defined in:
- lib/async_partial/handlers/haml.rb
Instance Method Summary collapse
Instance Method Details
#html_safe ⇒ Object
5 6 7 |
# 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! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |