Skip to content

Commit

Permalink
Fix for Ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Nov 8, 2014
1 parent 1b0d33d commit e498fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/csvlint/wrapped_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ def reset_line

def gets(*args)
if args.size == 1 && args[0].is_a?(String)
s = super
s = __getobj__.gets(args[0])
if s
@line << s
end
s
else
super
__getobj__.gets(*args)
end
end
end
Expand Down

0 comments on commit e498fe8

Please sign in to comment.