Method: StringifyHash#fmt_value

Defined in:
lib/stringify-hash.rb

#fmt_value(value, in_lvl = 0, in_inc = DIV) ⇒ Object

Chooses between collection and primitive formatting

!@visibility private



246
247
248
249
250
251
252
# File 'lib/stringify-hash.rb', line 246

def fmt_value( value, in_lvl = 0, in_inc = DIV )
  if value.kind_of? Enumerable and not value.is_a? String
    fmt_collection( value, in_lvl + 1, in_inc )
  else
    fmt_basic( value )
  end
end