Class: Ken::Collection
- Inherits:
-
Array
- Object
- Array
- Ken::Collection
- Defined in:
- lib/ken/collection.rb
Instance Method Summary collapse
-
#to_s ⇒ Object
add a linebreak after each entry.
Instance Method Details
#to_s ⇒ Object
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 |