318件ヒット
[1-100件を表示]
(0.126秒)
種類
- インスタンスメソッド (208)
- 特異メソッド (66)
- モジュール関数 (33)
- クラス (11)
クラス
- Binding (6)
-
Encoding
:: Converter (121) -
Encoding
:: InvalidByteSequenceError (33) -
Encoding
:: UndefinedConversionError (33) - Method (21)
- Module (5)
- Proc (11)
- Regexp (11)
-
RubyVM
:: InstructionSequence (22) - UnboundMethod (11)
モジュール
- Process (33)
キーワード
- UndefinedConversionError (11)
- compile (11)
-
const
_ source _ location (5) - convert (11)
-
destination
_ encoding (22) - getrlimit (11)
- inspect (5)
- new (44)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) -
search
_ convpath (11) - setrlimit (22)
-
source
_ encoding (33) -
source
_ encoding _ name (22) -
source
_ location (39) -
to
_ s (5)
検索結果
先頭5件
- Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding - Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding - Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding - Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding - Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding
-
Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding (26309.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換元のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#destination_encoding,
Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding (26309.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#source_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (26309.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (26308.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (26308.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (26303.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding... -
Regexp
# source -> String (26215.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
Encoding
:: Converter # source _ encoding -> Encoding (23309.0) -
変換元のエンコーディングを返します。
...変換元のエンコーディングを返します。
@return 変換元のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.source_encoding #=> #<Encoding:UTF-8>
//}... -
Binding
# source _ location -> [String , Integer] (23209.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (20269.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...スコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指......nil を返します。
定数は見つかったがソースファイルが見つからなかった場合は空の配列を返します。
//emlist[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
inclu......_source_location('C4') # => ["test.rb", 12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]
p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない
p A.const_source_... -
Proc
# source _ location -> [String , Integer] | nil (20233.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location #......=> nil
//}
@see Method#source_location...