lib/comma/extractors.rb in crafterm-comma-0.1.3 vs lib/comma/extractors.rb in crafterm-comma-0.1.4
- old
+ new
@@ -21,10 +21,10 @@
args.each do |arg|
case arg
when Hash
arg.each do |k, v|
- @results << v.to_s.humanize
+ @results << ((v.is_a? String) ? v : v.to_s.humanize)
end
when Symbol
@results << arg.to_s.humanize
when String
@results << arg