るりまサーチ

最速Rubyリファレンスマニュアル検索!
631件ヒット [1-100件を表示] (0.125秒)

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

モジュール

検索結果

<< 1 2 3 ... > >>

Net::IMAP::Envelope#from -> [Net::IMAP::Address] | nil (21218.0)

From を Net::IMAP::Address オブジェクトの配列で返します。

...From を Net::IMAP::Address オブジェクトの配列で返します。

エンベロープに存在しないときは nil を返します。...

Net::SMTP#mailfrom(from_addr) -> Net::SMTP::Response (12308.0)

MAILFROM コマンドを送ります。

...MAILFROM コマンドを送ります。

通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
MAILFROM が送られるため利用する必要はないはずです。

@param from_addr 送信元メールアドレス...

Gem::StreamUI#choose_from_list(question, list) -> Array (12302.0)

リストから回答を選択する質問をします。

...ら回答を選択する質問をします。

リストは質問の上に表示されます。

@param question 質問を指定します。

@param list 回答の選択肢を文字列の配列で指定します。

@return 選択肢の名称と選択肢のインデックスを要素とする配列...

TSort#each_strongly_connected_component_from(node, id_map={}, stack=[]) -> Enumerator (12221.0)

node から到達可能な強連結成分についてのイテレータです。

...h_strongly_connected_component_from
tsort_each_node を呼びません。

@param node ノードを指定します。

//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'

class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)...
...fetch(node).each(&block)
end
end

non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}

non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connected_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}
}

#出力
#=...
...> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}

@see TSort.each_strongly_connected_component_from...

TSort#each_strongly_connected_component_from(node, id_map={}, stack=[]) {|nodes| ...} -> () (12221.0)

node から到達可能な強連結成分についてのイテレータです。

...h_strongly_connected_component_from
tsort_each_node を呼びません。

@param node ノードを指定します。

//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'

class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)...
...fetch(node).each(&block)
end
end

non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}

non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connected_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}
}

#出力
#=...
...> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}

@see TSort.each_strongly_connected_component_from...

絞り込み条件を変える

Rake::FileList#excluded_from_list?(file_name) -> bool (12214.0)

与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。

...le_name ファイル名を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb")
file_list.exclude("test1.rb")
fil...
...e_list.excluded_from_list?("test1.rb") # => true
file_list.excluded_from_list?("test2.rb") # => false
end
//}...

Pathname#relative_path_from(base_directory) -> Pathname (12208.0)

base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。

...self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。

パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。

self が相対パスなら base_directory も相対パス、self...
...上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。

//emlist[例][ruby]{
require 'pathname'

path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")

path.relative_path_from(base) # => #<Pathname:foo>
//}...

Gem::Specification#loaded_from -> String (12202.0)

この Gem パッケージの gemspec がある場所を返します。

この Gem パッケージの gemspec がある場所を返します。

この属性は永続化されません。

Gem::Specification#loaded_from=(path) (12202.0)

この Gem パッケージの gemspec がある場所をセットします。

この Gem パッケージの gemspec がある場所をセットします。

@param path この Gem パッケージの gemspec がある場所を指定します。

Gem::UserInteraction#choose_from_list(*args) -> Array (12202.0)

リストから回答を選択する質問をします。

リストから回答を選択する質問をします。

@param args 委譲先のメソッドに与える引数です。

@return 選択肢の名称と選択肢のインデックスを要素とする配列を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>