1365件ヒット
[1-100件を表示]
(0.083秒)
ライブラリ
- ビルトイン (771)
-
cgi
/ core (24) - csv (120)
- matrix (72)
-
net
/ smtp (48) - openssl (24)
- ostruct (12)
- rake (36)
- readline (36)
-
rexml
/ document (60) -
rubygems
/ platform (12) - shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30) -
webrick
/ httputils (12) -
yaml
/ dbm (12)
クラス
-
ARGF
. class (96) - Array (120)
- CSV (12)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (24) -
CSV
:: Table (72) - Enumerator (24)
-
Enumerator
:: Lazy (12) -
File
:: Stat (12) -
Gem
:: Platform (12) - Hash (12)
- MatchData (72)
- Matrix (24)
-
Matrix
:: EigenvalueDecomposition (24) -
Matrix
:: LUPDecomposition (24) -
Net
:: SMTP (48) - NilClass (12)
- Object (12)
-
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (12)
-
REXML
:: Attributes (12) -
REXML
:: Element (12) -
REXML
:: Elements (12) -
REXML
:: Parent (24) -
Rake
:: FileList (36) - Regexp (24)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30) - String (140)
- Struct (12)
- Time (48)
-
WEBrick
:: HTTPUtils :: FormData (12) -
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (163)
- Kernel (12)
- Readline (12)
オブジェクト
-
Readline
:: HISTORY (12)
キーワード
- << (24)
- == (12)
- Array (12)
- Readline (12)
- [] (36)
- atime (12)
- bytes (12)
- cat (18)
- chain (7)
- chars (24)
- children (12)
- chunk (12)
-
chunk
_ while (12) - codepoints (12)
-
col
_ sep (12) - combination (12)
- delete (12)
-
delete
_ at (12) -
delete
_ if (24) - each (36)
-
each
_ byte (24) -
each
_ codepoint (12) -
each
_ grapheme _ cluster (16) -
each
_ line (24) -
each
_ pair (12) - echo (18)
- entries (12)
- force (12)
-
get
_ elements (12) - glob (18)
-
grapheme
_ clusters (16) -
irb
/ completion (12) - length (12)
- line (12)
- lines (24)
- local (24)
- match (24)
-
max
_ by (48) - mktime (24)
- new (24)
- permutation (24)
-
rb
_ Array (12) -
rcptto
_ list (12) - readline (12)
- readlines (36)
-
repeated
_ combination (12) -
repeated
_ permutation (12) - sample (48)
-
send
_ mail (12) - sendmail (12)
- size (24)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) -
svalue
_ to _ avalue (12) - tap (12)
- tee (18)
-
to
_ ary (72) - values (24)
-
values
_ at (12) - メソッド呼び出し(super・ブロック付き・yield) (12)
検索結果
先頭5件
-
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (21213.0) -
すべての子要素の配列を返します。
...EXML::Elements#each と同様、REXML::XPath.match などと
異なり、要素以外の子ノードは無視されます。
@param xpath XPath文字列
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_a......# => [<b/>, <c/>]
doc.root.elements.to_a("child::node()") # => [<b/>, <c/>]
REXML::XPath.match(doc.root, "child::node()") # => ["sean", <b/>, "elliott", <c/>]
//}... -
OpenSSL
:: X509 :: Extension # to _ a -> [String , String , bool] (21201.0) -
拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という 形で返します。
...拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という
形で返します。... -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (21119.0) -
内容を配列にして返します。
...整数(OpenSSL::ASN1以下の各定数で定義されているASN1の型)] という3要素の配列です。
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')
n.to_a
# => [["C", "J......P", 19], ["ST", "Kanagawa", 12], ["L", "Yokohama", 12], ["O", "Example Company", 12], ["OU", "Lab3", 12], ["CN", "foobar", 12], ["emailAddress", "foobar@lab3.example.co.jp", 22]]... -
CSV
:: Table # to _ a -> [Array] (21107.0) -
配列の配列を返します。
...要素はデータを表わします。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table.to_a # => [["header1", "header2"], ["row1_1", "r... -
NilClass
# to _ a -> Array (21107.0) -
空配列 [] を返します。
...空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//}... -
REXML
:: Attributes # to _ a -> [Attribute] (21107.0) -
属性の配列を返します。
...属性の配列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a x='1' y='2' z='3' />")
doc.root.attributes.to_a # => [x='1', y='2', z='3']
//}... -
Rake
:: FileList # to _ a -> Array (21107.0) -
内部的な配列を返します。
...内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//}... -
Shell
:: Filter # to _ a -> [String] (21107.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
CGI
:: QueryExtension :: Value # to _ a -> Array (21101.0) -
@todo
@todo