Method: Cassandra::Helpers#s_map
- Defined in:
- lib/cassandra/helpers.rb
#s_map(el, klass) ⇒ Object
Convert stuff to strings.
32 33 34 35 36 37 38 39 |
# File 'lib/cassandra/helpers.rb', line 32 def s_map(el, klass) case el when Array then el.map { |i| s_map(i, klass) } when NilClass then nil else klass.new(el).to_s end end |