Module: RSS::Utils::CSV
Relationships & Source Files | |
Defined in: | lib/rss/utils.rb |
Class Method Summary
- .parse(value, &block) mod_func
Class Method Details
.parse(value, &block) (mod_func)
[ GitHub ]# File 'lib/rss/utils.rb', line 159
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