るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.010秒)
トップページ > クエリ:pos[x] > 種類:変数[x]

別のキーワード

  1. _builtin pos
  2. _builtin pos=
  3. csv pos
  4. csv pos=
  5. zlib pos

ライブラリ

モジュール

キーワード

検索結果

Kernel$$ERROR_POSITION -> [String] | nil (6101.0)

$@ の別名

...$@ の別名

require "English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end...

Kernel$$POSTMATCH -> String | nil (6101.0)

$' の別名

...$' の別名

require "English"

str = 'hoge,foo,bar,hee,hoo'

/foo/ =~ str
p $POSTMATCH #=> ",bar,hee,hoo"...

Kernel$$stdin -> object (7.0)

標準入力です。

...トが以下のメソッドを
正しく実装していなければいけません。

gets, readline, readlines, getc, readchar, tell, seek,
pos
=, rewind, fileno, to_io, eof, each_line, each_byte,
binmode, closed?

//emlist[例][ruby]{
$stdin = Object.new
def $stdin.gets
"foo"
end
p g...