334件ヒット
[201-300件を表示]
(0.028秒)
種類
- インスタンスメソッド (180)
- ライブラリ (96)
- 文書 (34)
- クラス (12)
- 定数 (12)
ライブラリ
クラス
- CSV (24)
-
CSV
:: Table (60) -
Gem
:: StreamUI :: VerboseProgressReporter (24) - Method (12)
-
Resolv
:: DNS (12) - Thread (12)
モジュール
- Enumerable (24)
- Etc (12)
- Observable (12)
キーワード
- ConditionVariable (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
SC
_ 2 _ PBS _ ACCOUNTING (12) - arity (12)
-
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) -
count
_ observers (12) - inspect (12)
- priority= (12)
- read (12)
- readlines (12)
-
ruby 1
. 6 feature (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / specification _ command (12) -
sort
_ by (24) - timeouts= (12)
- updated (12)
検索結果
先頭5件
-
Enumerable
# sort _ by {|item| . . . } -> [object] (72.0) -
ブロックの評価結果を <=> メソッドで比較することで、self を昇 順にソートします。ソートされた配列を新たに生成して返します。
...", "foo"].sort_by {|v| v.downcase }
//}
以下の、実行回数の検証結果を参照してみてください。
//emlist[][ruby]{
class Integer
def count
$n += 1
self
end
end
ary = []
1.upto(1000) {|v| ary << rand(v) }
$n = 0
ary.sort {|a,b| a.count <=> b.count }
p $n #......200
$n = 0
ary.sort_by {|v| v.count }
p $n # => 1000
//}
Enumerable#sort_by は安定ではありません (unstable sort)。
ただし、sort_by を以下のように使うと安定なソートを実装できます。
//emlist[][ruby]{
i = 0
ary.sort_by {|v| [v, i += 1] }
//}
※ 比... -
NEWS for Ruby 2
. 3 . 0 (24.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ます。
11725
* safe navigation operator (ぼっち演算子):
* object&.foo という形式のメソッド呼び出し形式が追加されました。これは object が nil でないときにメソッド foo を呼び出します。
Active Support の try! と似ています......が、メソッド名は文法的に必須であるという点が異なります。
11537
//emlist{
obj.try! {} # valid
obj&. {} # syntax error
//}
* 引数はメソッドが呼び出された場合のみ評価されます。
//emlist{
obj.try!(:foo, bar......t::FTP#mlsd を追加。
* nkf
* nkf 2.1.4 をマージしました。
* ObjectSpace (objspace)
* ObjectSpace.#count_symbols を追加。
* ObjectSpace.#count_imemo_objects を追加。
* ObjectSpace.#internal_class_of を追加。
* ObjectSpace.#internal_super_of を追加... -
Method
# arity -> Integer (18.0) -
メソッドが受け付ける引数の数を返します。
...ist[例][ruby]{
class C
def u; end
def v(a); end
def w(*a); end
def x(a, b); end
def y(a, b, *c); end
def z(a, b, *c, &d); end
end
c = C.new
p c.method(:u).arity #=> 0
p c.method(:v).arity #=> 1
p c.method(:w).arity #=> -1
p c.m......ethod(:x).arity #=> 2
p c.method(:y).arity #=> -3
p c.method(:z).arity #=> -3
s = "xyz"
s.method(:size).arity #=> 0
s.method(:replace).arity #=> 1
s.method(:squeeze).arity #=> -1
s.method(:count).arity #=> -1
//}... -
rubygems
/ commands / dependency _ command (18.0) -
インストールされている Gem パッケージの依存関係を表示するためのライブラリです。
...GEMNAME [options]
Options:
-v, --version VERSION 指定したバージョンの依存関係を表示します
--platform PLATFORM 指定したプラットフォームの依存関係を表示します
-R, --[no-]reverse-dependencies この Gem を使用......している Gem を表示します
-p, --pipe Pipe Format (name --version ver)
Local/Remote Options:
-l, --local 操作をローカルに限定します
-r, --remote 操作をリモートに限定します
-b......, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL Gem パッケージのリ... -
rubygems
/ commands / fetch _ command (18.0) -
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
...ns]
Options:
-v, --version VERSION 指定されたバージョンの Gem を取得します
--platform PLATFORM 指定されたプラットフォームの Gem を取得します
Local/Remote Options:
-B, --bulk-threshold COUNT Threshold for swi......リの URL を指定します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE......グオプションを有効にします
Arguments:
GEMNAME ダウンロードする Gem パッケージの名前を指定します
Summary:
Gem パッケージをダウンロードしてカレントディレクトリに保存します
Defaults:
--version '>= 0'... -
rubygems
/ commands / install _ command (18.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
...ns:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-v, --version VERSION 指定されたバージョンの Gem パッケージをインストールします
Install/Update Options:
-i, --i......インストール時に RI ドキュメントを生成します
-E, --[no-]env-shebang インストールするスクリプトの shebang line を書き換えます(/usr/bin/env)
-f, --[no-]force 依存関係のチェックをバイパスして強制......限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL G... -
rubygems
/ commands / list _ command (18.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
...installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力します
-d, --[no-]details Gem パッケージの詳細も表示します
--[no-]versions Gem パッケージの名前の......限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL G......ッシュを更新します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE... -
rubygems
/ commands / query _ command (18.0) -
Gem パッケージの情報を検索するためのライブラリです。
...ライブラリです。
Usage: gem query [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION Specify version of gem to query
-n, --name-matches REGEXP 与えられた正規表現にマッチする Gem パッケージを......検索します
-d, --[no-]details Gem パッケージの詳細を表示します
--[no-]versions Gem パッケージ名のみ表示します
-a, --all 見つかった Gem パッケージの全ての......限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL G... -
rubygems
/ commands / search _ command (18.0) -
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
...nstalled gem
-v, --version VERSION Specify version of gem to search
-d, --[no-]details Display detailed information of gem(s)
--[no-]versions Display only gem names
-a, --all Display all gem versions
Local/R......限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL G......ッシュを更新します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE... -
rubygems
/ commands / specification _ command (18.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
...[GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all Output specifications for all versions of......限定します
-b, --both ローカルとリモートの両方の操作を許可します
-B, --bulk-threshold COUNT Threshold for switching to bulk
synchronization (default 1000)
--source URL G......ッシュを更新します
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE...