3298件ヒット
[1-100件を表示]
(0.136秒)
クラス
- Array (22)
- Complex (33)
- Data (4)
- Dir (367)
- Encoding (88)
-
Encoding
:: Converter (66) - Enumerator (23)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (11) - Exception (29)
- Fiber (14)
- File (677)
-
File
:: Stat (11) - Hash (22)
- IO (462)
- Integer (10)
- Module (11)
- NoMethodError (17)
- Random (92)
- Range (11)
- Regexp (77)
-
RubyVM
:: InstructionSequence (106) - SignalException (33)
- String (39)
- Struct (17)
- SystemExit (11)
- Thread (181)
-
Thread
:: ConditionVariable (9) -
Thread
:: Queue (3) -
Thread
:: SizedQueue (9) - Time (173)
- TracePoint (32)
モジュール
- GC (71)
-
GC
:: Profiler (44) - Process (62)
-
RubyVM
:: AbstractSyntaxTree (18) -
RubyVM
:: MJIT (18) - Warning (13)
キーワード
- DEBUG (11)
- [] (38)
- []= (5)
-
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) -
absolute
_ path (11) -
absolute
_ path? (5) -
asciicompat
_ encoding (22) - at (47)
- atime (11)
- basename (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- blockdev? (11)
- bytes (6)
- chardev? (11)
- chdir (33)
- children (14)
- chmod (11)
- chown (11)
- chroot (11)
- compatible? (11)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
copy
_ stream (22) - count (11)
- ctime (11)
- current (3)
-
default
_ external (11) -
default
_ external= (11) -
default
_ internal (11) -
default
_ internal= (11) - define (4)
-
define
_ method (22) - delete (44)
-
delete
_ if (22) - directory? (11)
- dirname (11)
- disasm (11)
- disassemble (11)
-
each
_ child (28) -
each
_ pair (11) - empty? (16)
- enabled? (6)
- entries (22)
- escape (11)
- exception (11)
- exclusive (11)
- executable? (11)
-
executable
_ real? (11) - exist? (22)
- exists? (18)
- exit (22)
- exit! (11)
- extname (11)
- fetch (33)
- file? (11)
- filter (12)
- filter! (12)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - foreach (66)
- fork (33)
- ftype (11)
- getwd (11)
- glob (22)
- gm (22)
- grpowned? (11)
-
handle
_ interrupt (11) - home (22)
- identical? (11)
- index (7)
- inspect (22)
- invert (11)
- join (11)
-
keep
_ if (17) - key (11)
- keys (11)
-
keyword
_ init? (3) - kill (11)
-
last
_ match (11) -
last
_ status (7) -
latest
_ gc _ info (22) - lchmod (11)
- lchown (11)
- left (11)
- length (11)
- list (22)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - local (22)
-
locale
_ charmap (11) - lstat (11)
- lutime (7)
- main (11)
- mkdir (11)
- mktime (22)
- mtime (11)
-
name
_ list (11) - nesting (11)
- new (351)
-
new
_ seed (11) - now (11)
- of (13)
- open (88)
- owned? (11)
- parse (8)
-
parse
_ file (8) - pass (11)
- path (11)
- pause (6)
-
pending
_ interrupt? (11) - pipe (77)
- pipe? (11)
- polar (11)
- popen (154)
- private (23)
- produce (5)
- public (4)
- pwd (11)
- quote (11)
- rand (22)
-
raw
_ data (11) -
raw
_ seed (2) - read (33)
- readable? (11)
-
readable
_ real? (11) - readlines (33)
- readlink (11)
- realdirpath (11)
- realpath (11)
- rect (11)
- rectangular (11)
- reject! (22)
- rename (11)
- report (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) - result (11)
- resume (6)
- rmdir (11)
-
search
_ convpath (11) - select (23)
- select! (22)
- setgid? (11)
- setuid? (11)
- shift (11)
- size (22)
- size? (11)
- socket? (11)
- spawn (11)
- split (11)
- sqrt (7)
- srand (22)
- start (22)
- stat (43)
- state (11)
- sticky? (11)
- stop (11)
- store (11)
- symlink? (11)
- sysopen (11)
-
to
_ a (11) -
to
_ s (22) -
to
_ tty? (7) -
total
_ time (11) - trace (11)
- truncate (11)
-
try
_ convert (58) - umask (22)
- union (11)
- unlink (22)
- urandom (7)
- utc (22)
- utime (11)
- values (11)
-
values
_ at (11) -
verify
_ compaction _ references (5) - warn (3)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (22)
- yield (11)
- zero? (11)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (18503.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
Exception
. exception(error _ message = nil) -> Exception (18403.0) -
例外オブジェクトを生成して返します。
...属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some messa......ge")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
Thread
. pending _ interrupt?(error = nil) -> bool (18303.0) -
非同期割り込みのキューが空かどうかを返します。
...。
Thread.handle_interrupt は非同期割り込みの発生を延期させるのに使
用しますが、本メソッドは任意の非同期割り込みが存在するかどうかを確認す
るのに使用します。
本メソッドが true を返した場合、Thread.handle_interrupt で例......ただちに発生させる。
def Thread.kick_interrupt_immediately
Thread.handle_interrupt(Object => :immediate) {
Thread.pass
}
end
=== 使い方
th = Thread.new{
Thread.handle_interrupt(RuntimeError => :on_blocking){
while true
...
# ここまで......
if Thread.pending_interrupt?
Thread.handle_interrupt(Object => :immediate){}
end
...
end
}
}
...
th.raise # スレッド停止。
この例は以下のように記述する事もできます。
flag = true
th = Thread.new{
Thread.handle_in... -
Encoding
. default _ internal -> Encoding | nil (15303.0) -
既定の内部エンコーディングを返します。デフォルトでは nil です。
...ォルトでは nil です。
標準入出力、コマンドライン引数、open で開くファイルなどで、内部エンコーディングが指定されていない場合の既定値として利用されます。
String#encode と String#encode! は、引数に Encoding が与えられて......t_internal を使用します。
文字列リテラルを作成した場合、エンコーディングには default_internal ではなく __ENCODING__ 特殊変数で参照できるスクリプトエンコーディングが使用されます。
default_internal は、ソースファイルの IO.i......nternal_encoding または -E オプションで初期化されます。
@see spec/rubycmd Encoding.default_external... -
Encoding
. default _ internal=(encoding) (15303.0) -
既定の内部エンコーディングを設定します。
...グを設定します。
default_internal を変更する前に作成した文字列と、default_internal を変更した後に作成した文字列とではエンコーディングが異なる可能性があるため、Ruby スクリプト内で Encoding.default_internal を設定してはいけ......に、ruby -E を使用して、正しい default_internal で Ruby を起動してください。
デフォルトの内部エンコーディングがどのように使われるかについては Encoding.default_internal を参照してください。
@see spec/rubycmd Encoding.default_internal... -
main
. define _ method(name , method) -> Symbol (15303.0) -
インスタンスメソッド name を Object に定義します。
...ame を Object に定義します。
ブロックを与えた場合、定義したメソッドの実行時にブロックが
Object インスタンスの上で BasicObject#instance_eval されます。
@param name String または Symbol を指定します。
@param method Proc、Method あるい......ethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
@raise TypeError method に同じクラス、サブクラス以外のメソッドを指定し
た場合に発生します。
@see Module#defi......ne_method... -
main
. inspect -> "main" (15303.0) -
"main" を返します。
..."main" を返します。... -
Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil (15203.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...SCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集合を持つ ASCII......CII 互換エンコーディングである場合や、エンコーディングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encodin......g:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Encoding
:: Converter . asciicompat _ encoding(string) -> Encoding | nil (15203.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...SCII 互換エンコーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集合を持つ ASCII......CII 互換エンコーディングである場合や、エンコーディングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encodin......g:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
main
. define _ method(name) { . . . } -> Symbol (15203.0) -
インスタンスメソッド name を Object に定義します。
...ame を Object に定義します。
ブロックを与えた場合、定義したメソッドの実行時にブロックが
Object インスタンスの上で BasicObject#instance_eval されます。
@param name String または Symbol を指定します。
@param method Proc、Method あるい......ethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
@raise TypeError method に同じクラス、サブクラス以外のメソッドを指定し
た場合に発生します。
@see Module#defi......ne_method...