mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/pty: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4502a6767
commit
411083a9a6
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
# frozen_string_literal: false
|
# frozen_string_literal: true
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# frozen_string_literal: false
|
# frozen_string_literal: true
|
||||||
$expect_verbose = false
|
$expect_verbose = false
|
||||||
|
|
||||||
# Expect library adds the IO instance method #expect, which does similar act to
|
# Expect library adds the IO instance method #expect, which does similar act to
|
||||||
|
@ -31,7 +31,7 @@ class IO
|
||||||
# or yielded. However, the buffer in a timeout session is kept for the next
|
# or yielded. However, the buffer in a timeout session is kept for the next
|
||||||
# expect call. The default timeout is 9999999 seconds.
|
# expect call. The default timeout is 9999999 seconds.
|
||||||
def expect(pat,timeout=9999999)
|
def expect(pat,timeout=9999999)
|
||||||
buf = ''
|
buf = ''.dup
|
||||||
case pat
|
case pat
|
||||||
when String
|
when String
|
||||||
e_pat = Regexp.new(Regexp.quote(pat))
|
e_pat = Regexp.new(Regexp.quote(pat))
|
||||||
|
@ -69,4 +69,3 @@ class IO
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue