We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 673ce23 commit 4ee79a8Copy full SHA for 4ee79a8
mrblib/string.rb
@@ -10,6 +10,7 @@ class String
10
#
11
# ISO 15.2.10.5.15
12
def each_line(rs = "\n", &block)
13
+ return to_enum(:each_line, rs, &block) unless block
14
return block.call(self) if rs.nil?
15
rs = rs.to_str
16
offset = 0
0 commit comments