るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b _builtin
  4. b string
  5. b

検索結果

<< 1 2 3 > >>

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...
<< 1 2 3 > >>