Skip to content

Commit

Permalink
Changing the use of String#each to String#each_line for compatibility…
Browse files Browse the repository at this point in the history
… with ruby1.9
  • Loading branch information
Saimon Moore committed Nov 13, 2009
1 parent 09d192b commit 268738a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vpim/rfc2425.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module Vpim
def Vpim.unfold(card) #:nodoc:
unfolded = []

card.each do |line|
card.each_line do |line|
line.chomp!
# If it's a continuation line, add it to the last.
# If it's an empty line, drop it from the input.
Expand All @@ -98,7 +98,7 @@ def Vpim.unfold(card) #:nodoc:
def Vpim.decode_list(value, sep = ',') # :nodoc:
list = []

value.each(sep) do |item|
value.each_line(sep) do |item|
item.chomp!(sep)
list << yield(item)
end
Expand Down

0 comments on commit 268738a

Please sign in to comment.