Class: Ken::Collection

Inherits:
Array
  • Object
show all
Defined in:
lib/ken/collection.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject

add a linebreak after each entry



4
5
6
# File 'lib/ken/collection.rb', line 4

def to_s
  self.inject("") { |m,i| "#{m}#{i.to_s}\n"}
end