2557件ヒット
[2501-2557件を表示]
(0.113秒)
別のキーワード
ライブラリ
- ビルトイン (1874)
- abbrev (12)
-
cgi
/ core (12) - csv (51)
- date (4)
- erb (8)
- forwardable (24)
- json (132)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) -
net
/ http (72) - open-uri (12)
- optparse (36)
- ostruct (14)
- rake (24)
-
rexml
/ document (48) - set (9)
- tsort (93)
-
webrick
/ httprequest (12)
クラス
- Array (113)
- BigDecimal (12)
- CGI (12)
-
CSV
:: Row (27) -
CSV
:: Table (24) - Complex (12)
- Data (12)
- Date (14)
- DateTime (14)
- ERB (8)
-
Encoding
:: Converter (48) - Exception (12)
- Float (12)
- Hash (1116)
-
JSON
:: State (24) - MatchData (14)
- Method (12)
- Module (12)
- Numeric (12)
- Object (60)
- OpenStruct (14)
- OptionParser (24)
- Proc (6)
-
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
REXML
:: Element (24) -
Rake
:: TaskArguments (24) - Range (24)
- Rational (12)
- Regexp (36)
-
RubyVM
:: InstructionSequence (12) - Set (12)
- String (240)
- Struct (59)
- Time (14)
- UnboundMethod (24)
-
WEBrick
:: HTTPRequest (12)
モジュール
- Enumerable (105)
- Forwardable (24)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (12) - TSort (93)
キーワード
- % (12)
- < (10)
- << (12)
- <= (10)
- == (12)
- === (12)
- > (10)
- >= (10)
- [] (12)
- []= (12)
- abbrev (12)
-
add
_ attributes (12) -
add
_ element (12) - all? (24)
- assoc (12)
- classify (12)
- clear (12)
- clone (12)
- collect (28)
- compact (9)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) -
deconstruct
_ keys (20) - default (24)
- default= (12)
-
default
_ proc (12) -
default
_ proc= (12) - delegate (12)
- delete (24)
-
delete
_ if (24) - difference (7)
- dig (30)
- dup (12)
- each (24)
-
each
_ key (24) -
each
_ pair (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
each
_ value (24) - empty? (12)
- encode (36)
- entities (12)
- eql? (48)
- equal? (12)
- except (4)
- fetch (72)
-
fetch
_ values (20) - filter (14)
- filter! (14)
- flatten (12)
-
form
_ data= (12) - getopts (36)
-
group
_ by (24) - gsub (48)
- gsub! (48)
-
has
_ key? (12) -
has
_ value? (12) - header (12)
- include? (12)
- index (7)
- inspect (12)
-
instance
_ delegate (12) - intersection (6)
- invert (12)
-
is
_ a? (12) -
keep
_ if (24) - key (12)
- key? (12)
- keys (12)
-
kind
_ of? (12) - length (12)
- map (28)
- member? (12)
- merge (24)
- merge! (24)
-
named
_ captures (24) - namespaces (12)
- owner (12)
-
primitive
_ convert (48) - query (12)
- rassoc (12)
- rehash (12)
- reject (24)
- reject! (24)
- replace (12)
- result (8)
-
ruby2
_ keywords (18) - select (24)
- select! (24)
-
set
_ form _ data (12) - shift (12)
- size (12)
- slice (8)
- store (12)
-
strongly
_ connected _ components (12) - sub (36)
- sub! (36)
- tally (10)
-
to
_ a (24) -
to
_ csv (12) -
to
_ h (108) -
to
_ hash (60) -
to
_ json (228) -
to
_ proc (10) -
to
_ s (24) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - tsort (12)
-
tsort
_ each (23) -
type
_ params (12) - union (7)
- update (24)
- value? (12)
- values (12)
-
values
_ at (12) -
with
_ defaults (12) - | (12)
検索結果
先頭5件
-
TSort
# tsort -> Array (19.0) -
頂点をトポロジカルソートして得られる配列を返します。 この配列は子から親に向かってソートされています。 すなわち、最初の要素は子を持たず、最後の要素は親を持ちません。
...後の要素は親を持ちません。
@raise TSort::Cyclic 閉路が存在するとき、発生します。
//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
sorted... -
TSort
# tsort _ each -> Enumerator (19.0) -
TSort#tsort メソッドのイテレータ版です。 obj.tsort_each は obj.tsort.each と似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...例外 TSort::Cyclic を起こします。
@raise TSort::Cyclic 閉路が存在するとき、発生します.
//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_so... -
TSort
# tsort _ each {|node| . . . } -> nil (19.0) -
TSort#tsort メソッドのイテレータ版です。 obj.tsort_each は obj.tsort.each と似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...例外 TSort::Cyclic を起こします。
@raise TSort::Cyclic 閉路が存在するとき、発生します.
//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_so... -
UnboundMethod
# owner -> Class | Module (19.0) -
このメソッドが定義されている class か module を返します。
...このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//}... -
Enumerable
# group _ by -> Enumerator (14.0) -
ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
...ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
//emlist[例][ruby]{
(1..6).group_by {|i| i%3} #=> {0=>[3, 6], 1=>[1, 4], 2=>[2, 5]}
//}
ブロックを省略した場合は Enumerator を返します。... -
OpenStruct
# to _ h -> { Symbol => object } (14.0) -
self を各要素の名前をキー(Symbol)、要素が値のハッシュに変換して返 します。
...します。
ブロックを指定すると各ペアでブロックを呼び出し、
その結果をペアとして使います。
//emlist[例][ruby]{
require 'ostruct'
data = OpenStruct.new("country" => "Australia", :capital => "Canberra")
data.to_h # => {:country => "Australia", :capital =>...