Class: Waistband::StringifiedArray

Inherits:
Array
  • Object
show all
Defined in:
lib/waistband/stringified_array.rb

Instance Method Summary collapse

Instance Method Details

#stringify_allObject



4
5
6
7
8
9
10
11
12
# File 'lib/waistband/stringified_array.rb', line 4

def stringify_all
  self.map do |val|
    if val.respond_to?(:to_s)
      val.to_s
    else
      val
    end
  end
end