Class: ArrayStringifier
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ArrayStringifier
- Defined in:
- lib/array_stringifier.rb
Overview
Responsible for decorating a collection which responds to ‘to_a` which will stringify all of the elements.
Example
ArrayStringifier.new({a: 1, b: 2}).to_a # => [["a", "1"], ["b", "2"]]
Instance Method Summary collapse
Instance Method Details
#to_a ⇒ Object
13 14 15 |
# File 'lib/array_stringifier.rb', line 13 def to_a stringify_items(collection.to_a) end |