Module: Casing::Underscore::Array
- Defined in:
- lib/casing/underscore/array.rb
Class Method Summary collapse
Class Method Details
.call(val, include_values: nil, symbol_to_string: nil) ⇒ Object Also known as: !
4 5 6 7 8 9 10 11 |
# File 'lib/casing/underscore/array.rb', line 4 def self.call(val, include_values: nil, symbol_to_string: nil) include_values = include_values.nil? ? false : include_values symbol_to_string ||= false val.map do |v| Casing::Underscore.(v, include_values: include_values, symbol_to_string: symbol_to_string) end end |