lib/lineinput.rb in review-1.2.0 vs lib/lineinput.rb in review-1.3.0
- old
+ new
@@ -111,11 +111,11 @@
buf.push line
end
buf
end
- alias span getlines_while # from Haskell
+ alias_method :span, :getlines_while # from Haskell
def until_match(re)
while line = gets()
if re =~ line
ungets line
@@ -132,10 +132,10 @@
buf.push line
end
buf
end
- alias break getlines_until # from Haskell
+ alias_method :break, :getlines_until # from Haskell
def until_terminator(re)
while line = gets()
return if re =~ line # discard terminal line
yield line