Skip to content

Commit

Permalink
changed case syntax to work with ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fields authored and aasmith committed Oct 27, 2009
1 parent 4429985 commit 681290d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/parsers/rss.rb
Expand Up @@ -88,9 +88,9 @@ def self.package(rss, loose)
end

def self.skip(parser, attribute)
attributes = case attribute
when :skipHours: :hours
when :skipDays: :days
case attribute
when :skipHours then attributes = :hours
when :skipDays then attributes = :days
end
channel = parser.channel

Expand Down

0 comments on commit 681290d

Please sign in to comment.