Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/digest_email/digest_items.rb
Instance Method Summary collapse
Instance Method Details
#intersperse(separator) ⇒ Object
5 6 7 |
# File 'lib/digest_email/digest_items.rb', line 5 def intersperse(separator) (inject([]) { |a,v| a + [v,separator] })[0...-1] end |