992件ヒット
[1-100件を表示]
(0.027秒)
ライブラリ
- ビルトイン (200)
-
cgi
/ core (11) - csv (165)
- etc (11)
- json (77)
-
json
/ add / struct (11) - open-uri (22)
- openssl (22)
- ostruct (21)
- pathname (11)
- pstore (55)
- psych (17)
- rake (22)
-
rdoc
/ context (11) -
rdoc
/ top _ level (11) -
rexml
/ document (44) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ source _ index (22) -
webrick
/ config (11) - win32ole (11)
-
yaml
/ store (19)
クラス
- CGI (11)
-
CGI
:: Cookie (11) - CSV (165)
- Data (8)
-
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: SourceIndex (22) - IO (88)
-
JSON
:: Parser (11) - MatchData (11)
- Module (5)
-
OpenSSL
:: X509 :: Name (11) - OpenStruct (21)
- PStore (55)
- Pathname (11)
-
RDoc
:: Context (11) -
RDoc
:: TopLevel (11) -
REXML
:: Attributes (11) -
REXML
:: Element (11) -
REXML
:: XPath (22) -
Rake
:: TaskArguments (22) - Regexp (11)
- String (11)
- Struct (43)
- WIN32OLE (11)
-
YAML
:: Store (19)
モジュール
- Etc (11)
- JSON (44)
-
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (22)
- OpenURI (22)
- Psych (17)
-
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (11) -
WEBrick
:: Config (11)
オブジェクト
- ENV (12)
キーワード
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - FileHandler (11)
-
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Ruby用語集 (11)
- [] (12)
- []= (11)
-
add
_ attributes (11) -
add
_ class _ or _ module (22) - cgi (11)
-
cgi
/ session (11) -
deconstruct
_ keys (2) - delete (11)
- dig (9)
- each (33)
- fetch (11)
- filter (33)
-
find
_ gems (11) - format (11)
- generate (22)
- hash (24)
-
hash
_ old (11) - instance (22)
- invoke (11)
- match (11)
-
named
_ captures (22) - namespaces (11)
- new (44)
- open (44)
-
open
_ uri (22) - parse (44)
- popen (88)
-
pretty
_ generate (11) -
pretty
_ unparse (11) - rdoc (11)
- read (11)
- readlines (11)
- root? (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (5) -
safe
_ load (17) - sprintf (11)
- sprintf フォーマット (11)
-
start
_ element (11) -
tag
_ start (11) -
to
_ h (45) -
to
_ hash (11) -
to
_ json (33) - uname (11)
- unparse (11)
-
webrick
/ cgi (11) -
with
_ defaults (11) - リテラル (11)
検索結果
先頭5件
-
OpenSSL
:: X509 :: Name (18028.0) -
X.500の識別名(DN, Distinguished Name)を表わすクラス。
...X.500の識別名(DN, Distinguished Name)を表わすクラス。
eql? と hash が定義されているため、Hash のキーとして
利用できます。... -
OpenSSL
:: X509 :: Name # hash _ old -> Integer (9113.0) -
OpenSSL 0.9.8 と互換な古い方式のハッシュ関数の ハッシュ値を返します。
...OpenSSL 0.9.8 と互換な古い方式のハッシュ関数の
ハッシュ値を返します。
内部では OpenSSL の X509_NAME_hash_old を呼び出します。... -
Pathname
# hash -> Integer (9101.0) -
ハッシュ値を返します。
ハッシュ値を返します。 -
Rake
:: TaskArguments # to _ hash -> Hash (6232.0) -
パラメータ名と対応する値を格納したハッシュを返します。
...納したハッシュを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
end
//}... -
MatchData
# named _ captures -> Hash (6229.0) -
名前付きキャプチャをHashで返します。
...キャプチャをHashで返します。
Hashのキーは名前付きキャプチャの名前です。Hashの値はキーの名前に対応した名前付きグループのうち最後にマッチした文字列です。
//emlist[例][ruby]{
m = /(?<a>.)(?<b>.)/.match("01")
m.named_captures # => {......"a" => "0", "b" => "1"}
m = /(?<a>.)(?<b>.)?/.match("0")
m.named_captures # => {"a" => "0", "b" => nil}
m = /(?<a>.)(?<a>.)/.match("01")
m.named_captures # => {"a" => "1"}
m = /(?<a>x)|(?<a>y)/.match("x")
m.named_captures # => {"a" => "x"}
//}
@see MatchData#captures... -
Data
# hash -> Integer (6131.0) -
自身のハッシュ値を整数で返します。 Data#eql? で比較して等しいオブジェクトは同じハッシュ値を返します。
...を返します。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
dog1 = Dog.new("Fred", 5)
p dog1.hash # => -3931425561194935428
dog2 = Dog.new("Fred", 5)
p dog2.hash # => -3931425561194935428
dog3 = Dog.new("Fred", 6)
p dog3.hash # => -4469132459285820530
//}
[注意] 本メソッドの記......述は Data のサブクラスのインスタンスに対して呼び
出す事を想定しています。Data.define は Data のサブクラスを作成する点に
注意してください。
@see Object#hash... -
Regexp
# named _ captures -> { String => [Integer] } (6128.0) -
正規表現に含まれる名前付きキャプチャ(named capture)の情報を Hash で返します。
...付きキャプチャ(named capture)の情報を
Hash で返します。
Hash のキーは名前付きキャプチャの名前で、値は
その名前に関連付けられたキャプチャの index のリストを返します。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)/.named_captures
# => {"foo......"=>[1], "bar"=>[2]}
/(?<foo>.)(?<foo>.)/.named_captures
# => {"foo"=>[1, 2]}
# 名前付きキャプチャを持たないときは空の Hash を返します。
/(.)(.)/.named_captures
# => {}
//}... -
Struct
# hash -> Integer (6125.0) -
self が保持するメンバのハッシュ値を元にして算出した整数を返します。 self が保持するメンバの値が変化すればこのメソッドが返す値も変化します。
...ばこのメソッドが返す値も変化します。
//emlist[例][ruby]{
Dog = Struct.new(:name, :age)
dog = Dog.new("fred", 5)
p dog.hash #=> 7917421
dog.name = "john"
p dog.hash #=> -38913223
//}
[注意] 本メソッドの記述は Struct の下位クラ... -
Etc
. # uname -> {Symbol => String} (6122.0) -
uname(2) で取得したシステム情報を Hash で返します。
...uname(2) で取得したシステム情報を Hash で返します。
@return 少なくとも :sysname, :nodename, :release, :version, :machine の
5 つのキーを持つ Hash を返します。
//emlist[例][ruby]{
require 'etc'
require 'pp'
pp Etc.uname
# => {:sysname=>"Linux",
#......:nodename=>"boron",
# :release=>"2.6.18-6-xen-686",
# :version=>"#1 SMP Thu Nov 5 19:54:42 UTC 2009",
# :machine=>"i686"}
//}... -
REXML
:: Attributes # namespaces -> { String => String } (6106.0) -
self の中で宣言されている名前空間の集合を返します。
...self の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xm......lns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...