キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Cygwin (12)
- DOSISH 対応 (12)
- GNU (12)
- GNU Hurd (12)
- Marshal フォーマット (12)
- MinGW (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - ReFe (12)
- Ruby が動作するプラットフォーム (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Rubyの起動 (12)
- Ruby変更履歴 (12)
- Ruby用語集 (12)
- Unix (12)
- Win32 (12)
- Win32ネイティブ版 (12)
- Win32ネイティブ版Rubyの互換性問題 (12)
- mingw32 (12)
- mswin32 (12)
- pack テンプレート文字列 (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - sprintf フォーマット (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- コマンド (12)
- スレッド (12)
- プログラム・文・式 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 正規表現 (12)
- 演算子式 (12)
- 環境変数 (12)
- 終了処理 (12)
検索結果
-
DOSISH 対応 (6037.0)
-
DOSISH 対応 ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変 更)が含まれています。(現在の)変更点を以下に示します。
...DOSISH 対応
ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変
更)が含まれています。(現在の)変更点を以下に示します。
なお、これらの変更は platform/mswin32 版、platform/mingw32
版の Ruby にのみあてはまります。......の挙動について...
: File.dirname
パスセパレータとして従来の/に加えて\も認識するようになっています。
これに合わせて、マルチバイトで記述されたパス名への対応も行われています。
p File.dirname("C:\\foo\\bar")
=> ru.......6.4 (2001-06-04) [i586-mswin32]
"."
=> ruby 1.7.1 (2001-08-16) [i586-mswin32]
"C:\\foo"
p File.dirname("C:/foo")
p File.dirname("C:\\foo")
p File.dirname("C:foo")
=> ruby 1.6.4 (2001-06-04) [i586-mswin32]
"C:"
"."
"."
=> ruby 1.7.1 (200... -
GNU Hurd (6017.0)
-
GNU Hurd --> platform/GNU
...GNU Hurd
--> platform/GNU... -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (3181.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * version 2.7 対応リファレンス * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ......です。
=== 目次
* spec/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical......spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format....../www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ... -
Ruby変更履歴 (3177.0)
-
Ruby変更履歴 * news/3_1_0 * news/3_0_0 * news/2_7_0 * news/2_6_0 * news/2_5_0 * news/2_4_0 * news/2_3_0 * news/2_2_0 * news/2_1_0 * news/2_0_0 * news/1_9_0
Ruby変更履歴
* news/3_1_0
* news/3_0_0
* news/2_7_0
* news/2_6_0
* news/2_5_0
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0 -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (3175.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * version 3.3 対応リファレンス * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
.../www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ......です。
=== 目次
* spec/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
Ruby の文法:
* spec/lexical
* spec/program
*......spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format....../www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ....../www.ruby-lang.org/ja/
* version 3.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレ... -
Ruby変更履歴 (3161.0)
-
Ruby変更履歴 * news/3_0_0 * news/2_7_0 * news/2_6_0 * news/2_5_0 * news/2_4_0 * news/2_3_0 * news/2_2_0 * news/2_1_0 * news/2_0_0 * news/1_9_0
Ruby変更履歴
* news/2_5_0
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0Ruby変更履歴
* news/2_6_0
* news/2_5_0
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0Ruby変更履歴
* news/2_7_0
* news/2_6_0
* news/2_5_0
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0Ruby変更履歴
* news/3_0_0
* news/2_7_0
* news/2_6_0
* news/2_5_0
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0 -
クラス/メソッドの定義 (3103.0)
-
クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined
...odule
* method
* operator
* nest_method
* eval_method
* singleton_method
* class_method
* limit
* 定義に関する操作:
* alias
* undef
* defined
===[a:class] クラス定義
//emlist[例][ruby]{
class Foo < Super
def test
# ...
end
# ...
end......ss ]
式..
end
文法:
class 識別子 [`<' superclass ]
式..
[rescue [error_type,..] [=> evar] [then]
式..]..
[else
式..]
[ensure
式..]
end
クラスを定義します。......ファベットの大文字で始まる識別子です。
rescue/ensure 節を指定し、例外処理ができます。
例外処理についてはd:spec/control#begin参照。
クラス定義は、識別子で指定した定数へのクラスの代入になります
(Ruby では、クラスも... -
Ruby変更履歴 (3097.0)
-
Ruby変更履歴 * news/2_4_0 * news/2_3_0 * news/2_2_0 * news/2_1_0 * news/2_0_0 * news/1_9_0
Ruby変更履歴
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0Ruby変更履歴
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0Ruby変更履歴
* news/2_4_0
* news/2_3_0
* news/2_2_0
* news/2_1_0
* news/2_0_0
* news/1_9_0 -
Ruby が動作するプラットフォーム (3061.0)
-
Ruby が動作するプラットフォーム Ruby は様々な環境で動作するよう各方面の有志によって移植されています。 以下、Ruby の動作環境について OS や 開発環境で大別して説明します。
...ンストール」(https://www.ruby-lang.org/ja/documentation/installation/)を参照。
* platform/Unix
* platform/Win32
* platform/Win32-native
* platform/mswin32
* platform/MinGW, platform/mingw32
* platform/Cygwin
* platform/MacOSX
* platform/GNU, platform/GNUHurd... -
Ruby変更履歴 (3049.0)
-
Ruby変更履歴 * news/2_1_0 * news/2_0_0 * news/1_9_0
Ruby変更履歴
* news/2_1_0
* news/2_0_0
* news/1_9_0 -
メソッド呼び出し(super・ブロック付き・yield) (3049.0)
-
メソッド呼び出し(super・ブロック付き・yield) * super * block * yield * block_arg * numbered_parameters * call_method
...メソッド呼び出し(super・ブロック付き・yield)
* super
* block
* yield
* block_arg
* numbered_parameters
* call_method
//emlist[例][ruby]{
foo.bar()
foo.bar
bar()
print "hello world\n"
print
Class.new
Class::new
//}
文法:
[式 `.'] 識別子 [`(' [[`*']......ト(Method)がブロック
としてメソッドに渡されます。詳細は block を参照してください。
メソッド呼び出しの際、private なメソッドは関数形式(レシーバを省
略した形式)でしか呼び出すことができません。また protected なメソ......そのメソッドを持つオブジェクトのメソッド定義式内でなければ呼び出せ
ません。d:spec/def#limit を参照して下さい。
ハッシュ式の解説(d:spec/literal#hash)にも書かれている通り、
メソッド呼出の末尾にHashを渡す場合は {, } を... -
Rubyの起動 (3031.0)
-
Rubyの起動 * cmd_option * shebang
...Rubyの起動
* cmd_option
* shebang
Rubyインタプリタの起動は以下の書式のコマンドラインにより行います。
ruby [ option ...] [ -- ] [ programfile ] [ argument ...]
ここで、option は後述のcmd_option
のいずれかを指定します。-- は、オプシ......ます。Win32 環境で、
ワイルドカード展開を抑止したい場合は引数をシングルクォート(') で括りま
す。
===[a:cmd_option] コマンドラインオプション
Rubyインタプリタは以下のコマンドラインオプションを受け付けま
す。基本的......が実行されます。`-n'か`-p'オプションが同時に指定されない限り,
このオプションは意味を持ちません。
: -C directory
スクリプト実行前に指定されたディレクトリに移動します。
: -c
スクリプトの内部形式へのコンパ......ist{
# test.rb
def f6 = raise
def f5 = f6
def f4 = f5
def f3 = f4
def f2 = f3
def f1 = f2
f1
//}
//emlist{
% ruby --backtrace-limit=3 test.rb
test.rb:1:in `f6': unhandled exception
from test.rb:2:in `f5'
from test.rb:3:in `f4'
from test.rb:4:in `f3'
... 3 levels...
//}
: -C directory... -
スレッド (3019.0)
-
スレッド スレッドとはメモリ空間を共有して同時に実行される制御の流れです。 Ruby ではスレッドはThread クラスのインスタンスとして表されます。
...スレッド
スレッドとはメモリ空間を共有して同時に実行される制御の流れです。
Ruby ではスレッドはThread クラスのインスタンスとして表されます。
=== 実装
ネイティブスレッドを用いて実装されていますが、
現在の実装......ad#join で待っている他の
スレッドがある場合、その待っているスレッドに対して、同じ例外が再度
発生します。
begin
t = Thread.new do
Thread.pass # メインスレッドが確実にjoinするように
raise "unhandled exception"
end......ue
p $! # => "unhandled exception"
end
また、以下の 3 つの方法により、いずれかのスレッドが例外によって終
了した時に、インタプリタ全体を中断させるように指定することができま
す。
* 組み込み変数 $DEBUG を真に設定す...