2689件ヒット
[201-300件を表示]
(0.230秒)
クラス
-
ARGF
. class (22) - BasicObject (88)
- Binding (11)
- Class (22)
- Data (22)
- Dir (61)
- Encoding (66)
-
Encoding
:: InvalidByteSequenceError (22) -
Encoding
:: UndefinedConversionError (22) - File (284)
- IO (88)
- MatchData (92)
- Method (22)
- Module (568)
- NameError (57)
- NoMethodError (28)
- Object (143)
- Regexp (22)
- RubyVM (11)
- SignalException (33)
- String (242)
- Struct (193)
- Symbol (26)
- Thread (58)
- TracePoint (22)
- UnboundMethod (22)
モジュール
- Enumerable (88)
-
File
:: Constants (11) - Kernel (132)
- ObjectSpace (44)
-
Process
:: GID (11) -
Process
:: UID (11) -
RubyVM
:: AbstractSyntaxTree (8) - Signal (11)
キーワード
-
$ 0 (11) -
$ FILENAME (11) -
$ PROGRAM _ NAME (11) - % (11)
- == (24)
- Data (2)
- ENAMETOOLONG (11)
-
FNM
_ PATHNAME (11) -
INSTRUCTION
_ NAMES (11) - NameError (11)
- Symbol (11)
- UndefinedConversionError (11)
- [] (143)
- []= (99)
-
_ _ send _ _ (22) -
absolute
_ path (11) -
absolute
_ path? (5) - args (11)
- atime (11)
- attr (33)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - autoload (22)
- autoload? (22)
- basename (11)
- birthtime (10)
- byteoffset (4)
-
callee
_ id (11) - chmod (11)
- chown (11)
-
class
_ eval (11) -
class
_ variable _ defined? (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
const
_ added (2) -
const
_ defined? (11) -
const
_ get (11) -
const
_ missing (11) -
const
_ set (11) -
const
_ source _ location (5) - ctime (11)
-
deconstruct
_ keys (2) - define (4)
-
define
_ method (44) -
define
_ singleton _ method (22) - delete (11)
-
deprecate
_ constant (9) -
destination
_ encoding _ name (22) - dirname (11)
- each (22)
-
each
_ object (44) - empty? (8)
- eql? (13)
- eval (22)
- exist? (11)
- exists? (9)
- extname (11)
- fetch (7)
- filename (11)
- find (11)
- format (11)
-
from
_ name (22) - ftype (11)
- glob (22)
- hash (13)
- id2name (11)
- identical? (11)
- initialize (11)
- inspect (24)
-
instance
_ eval (11) -
instance
_ method (11) - intern (11)
- key? (11)
- lchmod (11)
- lchown (11)
- length (11)
-
local
_ variables (9) - lstat (11)
- lutime (7)
- max (44)
- method (11)
-
method
_ added (11) -
method
_ defined? (11) -
method
_ id (11) -
method
_ missing (11) -
method
_ removed (11) -
method
_ undefined (11) - min (44)
- mkfifo (9)
-
module
_ eval (11) -
module
_ function (19) - mtime (11)
- name= (9)
-
name
_ list (11) -
named
_ captures (22) - names (33)
- new (144)
- offset (22)
-
original
_ name (22) -
parse
_ file (8) - path (22)
- popen (88)
- private (46)
-
private
_ class _ method (15) -
private
_ constant (11) -
private
_ method _ defined? (11) - protected (23)
-
protected
_ method _ defined? (11) - public (46)
-
public
_ class _ method (15) -
public
_ constant (11) -
public
_ instance _ method (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ send (22) - realdirpath (11)
- realpath (11)
- receiver (9)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) -
remove
_ method (11) - rename (11)
- replicate (11)
-
respond
_ to? (11) -
respond
_ to _ missing? (11) -
ruby2
_ keywords (5) - send (22)
- signame (11)
-
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) - size (11)
- slice (66)
-
source
_ encoding _ name (22) - split (11)
- sprintf (11)
- stat (11)
-
to
_ a (11) -
to
_ h (33) -
to
_ s (57) -
to
_ sym (11) -
trace
_ var (33) -
undef
_ method (11) - unlink (11)
-
untrace
_ var (11) - utime (11)
- values (11)
- with (2)
検索結果
先頭5件
-
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (14103.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (14103.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding -
ARGF
. class # filename -> String (14102.0) -
現在開いている処理対象のファイル名を返します。
...は - を返します。
組み込み変数 $FILENAME と同じです。
$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark
$ ruby argf.rb foo bar glark
ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"... -
Encoding
# names -> String (14102.0) -
エンコーディングの名前とエイリアス名の配列を返します。
...エンコーディングの名前とエイリアス名の配列を返します。
//emlist[例][ruby]{
Encoding::UTF_8.names #=> ["UTF-8", "CP65001"]
//}... -
File
. rename(from , to) -> 0 (14102.0) -
ファイルの名前を変更します。ディレクトリが異なる場合には移動も行い ます。rename(2) を参照してください。移動先のファ イルが存在する時には上書きされます。
...ファイルの名前を変更します。ディレクトリが異なる場合には移動も行い
ます。rename(2) を参照してください。移動先のファ
イルが存在する時には上書きされます。
ファイルの移動に成功した場合 0 を返します。失敗した......[ruby]{
begin
File.rename("testfile", "testfile.bak") # => 0
File.rename("testfile", "testfile.bak")
rescue
# 2回目の rename 時にすでに testfile が存在しないため例外が発生する
$! # => #<Errno::ENOENT: No such file or directory @ rb_file_s_rename - (testfile, testfile... -
File
:: Constants :: FNM _ PATHNAME -> Integer (14102.0) -
ワイルドカード `*', `?', `[]' が `/' にマッチしなくなります。 シェルのパターンマッチにはこのフラグが使用されています。 File.fnmatch, Dir.globで使用します。
ワイルドカード `*', `?', `[]' が `/' にマッチしなくなります。
シェルのパターンマッチにはこのフラグが使用されています。
File.fnmatch, Dir.globで使用します。 -
Kernel
$ $ FILENAME -> String (14102.0) -
仮想ファイル Object::ARGF で現在読み込み中のファイル名です。 ARGF.class#filename と同じです。
...仮想ファイル Object::ARGF で現在読み込み中のファイル名です。
ARGF.class#filename と同じです。
この変数はグローバルスコープです。... -
MatchData
# named _ captures -> Hash (14102.0) -
名前付きキャプチャをHashで返します。
...= /(?<a>.)(?<b>.)/.match("01")
m.named_captures # => {"a" => "0", "b" => "1"}
m = /(?<a>.)(?<b>.)?/.match("0")
m.named_captures # => {"a" => "0", "b" => nil}
m = /(?<a>.)(?<a>.)/.match("01")
m.named_captures # => {"a" => "1"}
m = /(?<a>x)|(?<a>y)/.match("x")
m.named_captures # => {"a" => "x"}
//}... -
MatchData
# names -> [String] (14102.0) -
名前付きキャプチャの名前を文字列配列で返します。
...前を文字列配列で返します。
self.regexp.names と同じです。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names
# => ["foo", "bar", "baz"]
m = /(?<x>.)(?<y>.)?/.match("a") # => #<MatchData "a" x:"a" y:nil>
m.names # => ["x", "y"]
//}... -
Regexp
# named _ captures -> { String => [Integer] } (14102.0) -
正規表現に含まれる名前付きキャプチャ(named capture)の情報を Hash で返します。
...付きキャプチャ(named capture)の情報を
Hash で返します。
Hash のキーは名前付きキャプチャの名前で、値は
その名前に関連付けられたキャプチャの index のリストを返します。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)/.named_captures
# => {"foo......"=>[1], "bar"=>[2]}
/(?<foo>.)(?<foo>.)/.named_captures
# => {"foo"=>[1, 2]}
# 名前付きキャプチャを持たないときは空の Hash を返します。
/(.)(.)/.named_captures
# => {}
//}...