Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • rss/utils.rb

Methods

Class/Module Index [+]

Quicksearch

RSS::Utils::CSV

Public Instance Methods

parse(value, &block) click to toggle source
 
               # File rss/utils.rb, line 70
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