41件ヒット
[1-41件を表示]
(0.066秒)
別のキーワード
種類
- 文書 (29)
- インスタンスメソッド (12)
ライブラリ
- optparse (12)
クラス
- OptionParser (12)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - Ruby用語集 (12)
-
ruby 1
. 8 . 4 feature (12)
検索結果
-
OptionParser
# environment(env) -> [String] (18119.0) -
環境変数 env に対して Shellwords.#shellwords を呼 んで配列にしてから parse を行ないます。
...環境変数 env に対して
Shellwords.#shellwords を呼
んで配列にしてから parse を行ないます。
@param env 環境変数名を文字列で与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際......opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }
# HOGE_OPT は hoge というプログラム名に対応した名前です
ENV['HOGE_OPT'] = %q{--require lib1 'remain data'}
p opts.environment('HOGE_OPT') # => ["remain data"]
p config # => {:lib=>"lib1"}
//}... -
ruby 1
. 8 . 4 feature (420.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...# => ruby 1.8.4 (2005-12-16) [i686-linux]
-:1: empty symbol literal
: Symbol [bug]
#Sat Oct 22 13:26:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
# if valid as a symbol name more strictly. [r......puts :"@1".inspect
puts :"@@1".inspect
puts :"@".inspect
puts :"@@".inspect
# => ruby 1.8.3 (2005-09-21) [i686-linux]
:!
:=
:0
:$1
:@1
:@@1......(<ruby-dev:27449>))
: mkmf: find_executable() [compat]
#Thu Sep 22 23:36:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * lib/mkmf.rb (find_executable0): default path if environment is not
# set. [ruby-dev:27281]
実行ファイルを探索するときに環境変数 PATH... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...rue` is used. 17104
* Magic comment `shareable_constant_value` added to freeze constants.
See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details.
17273
* A {static analysis}[rdoc-label:label-Static+analysis] foundation is
introduced.
* {RBS}[rdo......541
* Assigning to a numbered parameter is now a SyntaxError instead of
a warning.
== Command line options
=== `--help` option
When the environment variable `RUBY_PAGER` or `PAGER` is present and has
a non-empty value, and the standard input and output are tty, the `--help`
option shows the......on uses only methods ending with `!`.
* Ractor compatible.
* Improved support for YAML. 8382
* Use officially discouraged. Read OpenStruct@Caveats section.
* Pathname
* Ractor compatible.
* Psych
* Update to Psych 3.3.0
* This version is Ractor compatible.
* Reline... -
Ruby用語集 (18.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...総称。
メソッド名はインスタンス変数の識別子と同じものを使う習慣がある。
例えば @foo の値を読み出すメソッドは foo とし、@foo に値を設定する
メソッドは foo= とする。
: 浅い複製
: shallow copy
配列を dup メソッド......があるので注意が必要である。
: インスタンス変数
: instance variable
オブジェクト固有の変数。識別子の前に @ が一つだけ付いた形式の名前を持つ。
同じクラスのインスタンスの同名の変数でもインスタンスが異なれば......、再代入もできる。
仮引数に代入を行っても呼び出し側には影響を与えない。
→実引数
: 環境変数
: environment variable
OS がその上で動作するプロセスに対して提供する文字列型のデータ共有機能。
名前と値の組から...