るりまサーチ

最速Rubyリファレンスマニュアル検索!
274件ヒット [101-200件を表示] (0.037秒)

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

検索結果

<< < 1 2 3 > >>

Gem::Commands::HelpCommand::PLATFORMS -> String (3101.0)

プラットフォームに関する記述を格納している文字列です。

プラットフォームに関する記述を格納している文字列です。

IRB::ExtendCommand::Help#execute(*names) -> nil (3030.0)

RI から Ruby のドキュメントを参照します。

...RI から Ruby のドキュメントを参照します。

irb(main):001:0> help String#match
...

@param names 参照したいクラス名やメソッド名などを文字列で指定します。

names を指定しなかった場合は、RI を対話的なモードで起動します。メソ...
...で irb のプロンプトに戻る事ができま
す。

irb(main):001:0> help

Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.

>> String#match
String
#match

(from ruby core)
--------------------------------------------------...

このマニュアルのヘルプ (3030.0)

このマニュアルのヘルプ === 記号の説明

...数であることを表します。「Kernel.#require」は
「Kernel のモジュール関数である require 」という意味です。

: String#size の # って何?
「#」はインスタンスメソッドであることを表します。

: Dir.chdir の . って何?
「.」はクラ...
...省略されます

複数の型の値を返すときは "|" を使って記述されています。

例:
# String または String の配列を返す
CGI#[](name) -> String | [String]

x オブジェクトと nil で成功・失敗を表す場合は「x | nil」が
使われています。

==...

NEWS for Ruby 3.0.0 (276.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...", "f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end
//}

* Endless method definition is added. [EXPERIMENTAL]
16746

//emlist{
def square(x) = x * x
//}

* Interpolated String literals are no lo...
...nger frozen when
`# frozen-string-literal: true` 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]...
...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 help message via the pager designated by the value.
16754

===...

OptionParser#summary_indent -> String (119.0)

サマリを表示する時のインデントを文字列で返します。

....on_tail("-h", "--help")
end

opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}...

絞り込み条件を変える

OptionParser#to_a -> [String] (113.0)

サマリの各行を要素とした配列を返します。

...を返します。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}...

OptionParser#parse(*args) -> [String] (108.0)

与えられた argv をパースします。 argv からオプションを取り除いたものを返します。

...ラスになります。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
//}...

OptionParser#parse(*args, into: nil) -> [String] (108.0)

与えられた argv をパースします。 argv からオプションを取り除いたものを返します。

...ラスになります。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
//}...

OptionParser#parse(argv) -> [String] (108.0)

与えられた argv をパースします。 argv からオプションを取り除いたものを返します。

...ラスになります。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
//}...

OptionParser#parse(argv, into: nil) -> [String] (108.0)

与えられた argv をパースします。 argv からオプションを取り除いたものを返します。

...ラスになります。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
//}...

絞り込み条件を変える

OptionParser#parse!(argv = self.default_argv) -> [String] (107.0)

与えられた argv をパースします。

...][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse...

OptionParser#parse!(argv = self.default_argv, into: nil) -> [String] (107.0)

与えられた argv をパースします。

...][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse...

NEWS for Ruby 2.6.0 (66.0)

NEWS for Ruby 2.6.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...ンスを返すようになりました。

* Regexp/String
* Unicode のバージョンを 10.0.0 から 11.0.0 に更新しました。 14802
これは書記素クラスタ (/\X/) アルゴリズムの書き換えと String#downcase での
Georgian MTAVRULI の special-casi...
..."require(feature)" で読み込むファイルを
特定します。 [実験的] 15230

* String
* String#crypt は非推奨になりました。 14915
* 新機能
* String#split はブロックが渡されていたら部分文字列ごとに呼び出すようになりまし...
...ラインオプションが追加されました。
「--jit-verbose=1」が調査に有用です。
他のオプションは「ruby --help」を参照してください。
* 機械語を生成するため、この JIT コンパイラはインタプリタをビルドするのに使...

irb (48.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...n に設定する
(ユーザは利用すべきではない)
-v, --version irb のバージョンを表示する
-h, --help irb のヘルプを表示する
-- 以降のコマンドライン引数をオプションとして扱わない

=== irb の...
...so,*.o,*.dll など)を指定した場合は単純に require さ
れます。

: help(*names)
: irb_help(*names)

RI から Ruby のドキュメントを参照します。

//emlist{
irb(main):001:0> help String#match
...
//}

names を指定しなかった場合は、RI を対話的な...
...プロンプトに戻る事が
できます。

//emlist{
irb(main):001:0> help

Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.

>> String#match
String
#match

(from ruby core)
-----------------------------------------------...
<< < 1 2 3 > >>