123456789_123456789_123456789_123456789_123456789_

Module: RSS::Utils::CSV

Relationships & Source Files
Defined in: lib/rss/utils.rb

Class Method Summary

Class Method Details

.parse(value, &block) (mod_func)

[ GitHub ]

  
# File 'lib/rss/utils.rb', line 141

def parse(value, &block)
  if value.is_a?(String)
    value = value.strip.split(/\s*,\s*/)
    value = value.collect(&block) if block_given?
    value
  else
    value
  end
end