238件ヒット
[1-100件を表示]
(0.098秒)
別のキーワード
ライブラリ
- ビルトイン (58)
- json (24)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) -
json
/ add / symbol (12) - prime (96)
- rss (24)
クラス
- BigDecimal (12)
-
Enumerator
:: Lazy (58) - Exception (12)
- Prime (36)
-
Prime
:: PseudoPrimeGenerator (60) -
RSS
:: Maker :: ChannelBase (24) - Symbol (12)
キーワード
- each (36)
- generator= (12)
- prime? (12)
-
slice
_ after (11) -
slice
_ before (36) -
slice
_ when (11) -
to
_ json (48) -
to
_ json _ raw _ object (12) -
upper
_ bound (12) -
upper
_ bound= (12) -
with
_ object (24)
検索結果
先頭5件
-
RSS
:: Maker :: ChannelBase # generator (21103.0) -
@todo
@todo -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (12101.0) -
生の文字列を格納したハッシュを生成します。
...する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malformed (JSON::GeneratorError)... -
Prime
:: PseudoPrimeGenerator # with _ object(obj) {|prime , obj| . . . } -> object (9401.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
...m obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_objec... -
Prime
:: PseudoPrimeGenerator # upper _ bound=(upper _ bound) (9201.0) -
新しい列挙上界をセットします。
...新しい列挙上界をセットします。
@param upper_bound 新しい上界を整数または nil で指定します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。... -
Prime
:: PseudoPrimeGenerator # with _ object(obj) -> Enumerator (9201.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
...m obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_objec... -
RSS
:: Maker :: ChannelBase # generator=() (9103.0) -
@todo
@todo -
Prime
:: PseudoPrimeGenerator # upper _ bound -> Integer | nil (9101.0) -
現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。
現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。 -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (9007.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("tanaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
Enumerator
:: Lazy # slice _ before {|elt| bool } -> Enumerator :: Lazy (6107.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>
1.step.lazy.slice_before { |e| e % 3 == 0 }.t......ake(5).force
# => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]]
//}
@see Enumerable#slice_before...