Method: Prawn::Format::Instructions::Text#accumulate
- Defined in:
- lib/prawn/format/instructions/text.rb
#accumulate(list) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/prawn/format/instructions/text.rb', line 25 def accumulate(list) if list.last.is_a?(Text) && list.last.state == state list.last.text << @text else list.push(dup) end return list end |