別のキーワード
種類
ライブラリ
- ビルトイン (1205)
- date (11)
- debug (11)
- delegate (11)
- fiber (8)
- fiddle (11)
-
irb
/ cmd / chws (22) -
irb
/ cmd / pushws (33) -
irb
/ cmd / subirb (33) -
irb
/ extend-command (44) -
irb
/ inspector (11) -
irb
/ output-method (66) - json (22)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / symbol (11) -
json
/ add / time (11) - matrix (11)
-
minitest
/ spec (1) - mkmf (11)
- nkf (22)
- objspace (11)
- open-uri (15)
- openssl (99)
- pathname (22)
- pp (4)
- prettyprint (22)
- psych (50)
-
rdoc
/ code _ object (11) - resolv (11)
- securerandom (11)
- shell (12)
-
shell
/ builtin-command (6) -
shell
/ command-processor (12) -
shell
/ filter (12) - stringio (40)
- strscan (22)
- tempfile (21)
- thwait (12)
- tracer (11)
- uri (11)
- win32ole (44)
-
yaml
/ dbm (22) - zlib (33)
クラス
- Array (126)
- BasicObject (66)
- BigDecimal (11)
- Class (11)
- Complex (11)
- Date (22)
- DateTime (11)
- Delegator (11)
- Enumerator (51)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (22) -
Enumerator
:: Yielder (11) - Exception (11)
- Fiber (33)
-
Fiddle
:: Closure :: BlockCaller (11) - File (11)
- Hash (11)
- IO (121)
-
IRB
:: ExtendCommand :: ChangeWorkspace (11) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (11) -
IRB
:: ExtendCommand :: Foreground (11) -
IRB
:: ExtendCommand :: IrbCommand (11) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: ExtendCommand :: PopWorkspace (11) -
IRB
:: ExtendCommand :: PushWorkspace (11) -
IRB
:: ExtendCommand :: Workspaces (11) -
IRB
:: Inspector (11) -
IRB
:: OutputMethod (55) -
IRB
:: StdioOutputMethod (11) - LocalJumpError (11)
- Method (51)
- Module (22)
- Object (221)
-
OpenSSL
:: PKey :: DH (11) -
OpenSSL
:: PKey :: DSA (22) -
OpenSSL
:: PKey :: EC :: Group (11) -
OpenSSL
:: PKey :: RSA (22) -
OpenSSL
:: X509 :: ExtensionFactory (11) - OpenStruct (11)
- Pathname (22)
- PrettyPrint (22)
- Proc (11)
- Range (22)
- Rational (11)
- Regexp (22)
-
Resolv
:: DNS (11) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Concat (6) -
Shell
:: Filter (12) - String (55)
- StringIO (40)
- StringScanner (22)
- Struct (22)
- Symbol (11)
- Tempfile (21)
- ThreadsWait (12)
- Time (22)
- TracePoint (22)
- Tracer (22)
- UnboundMethod (10)
- WIN32OLE (33)
-
WIN32OLE
_ EVENT (11) -
YAML
:: DBM (22) -
Zlib
:: GzipWriter (33)
モジュール
- Enumerable (181)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (22) - Kernel (107)
- Marshal (22)
- NKF (11)
- ObjectSpace (55)
-
OpenSSL
:: Buffering (11) - Psych (28)
- URI (18)
キーワード
- ! (11)
- === (18)
- ARGV (11)
- BasicObject (11)
- CodeObject (11)
- Complex (22)
- DATA (11)
-
Data
_ Get _ Struct (11) - Matrix (11)
-
NEWS for Ruby 2
. 3 . 0 (9) - NKF (11)
- ObjectId (11)
- RARRAY (11)
- RBASIC (11)
- RBIGNUM (11)
- RCLASS (11)
- RDATA (11)
- RFILE (11)
- RFLOAT (11)
- RHASH (11)
- RMODULE (11)
- ROBJECT (11)
- RREGEXP (11)
- RSTRING (11)
- RSTRUCT (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
- SecureRandom (11)
- [] (11)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ strptime (11) - append (7)
- bigdecimal (11)
-
bind
_ call (10) - bsearch (33)
- call (33)
-
class
_ exec (11) - collect (22)
-
collect
_ concat (22) - concat (18)
- create (11)
-
def
_ extend _ command (22) -
def
_ inspector (11) - dump (22)
-
dump
_ stream (11) - each (28)
-
each
_ object (44) -
each
_ with _ object (22) - encode (33)
- entries (11)
-
enum
_ for (22) - execute (88)
- extend (11)
-
filter
_ map (5) -
flat
_ map (22) - flush (11)
- force (11)
- format (11)
-
generic
_ ivar _ remove (11) -
givar
_ i (11) -
grep
_ v (22) - guess (11)
- handler= (11)
- initialize (11)
-
install
_ extend _ commands (22) -
instance
_ exec (11) - invoke (11)
- jj (11)
- join (57)
-
join
_ nowait (6) -
localjump
_ error (11) - map (22)
- match (11)
-
max
_ by (11) -
memsize
_ of (11) -
method
_ missing (33) -
module
_ exec (11) -
must
_ raise (1) -
net
/ imap (11) - new (123)
- open (69)
-
os
_ each _ obj (11) - p (11)
- pack (19)
- pack テンプレート文字列 (11)
- parameters (22)
- pipe (22)
- popen (77)
- pp (22)
- ppx (11)
- prepend (7)
- print (33)
- printf (11)
- printn (11)
-
psych
_ y (11) -
public
_ send (22) - push (11)
- puts (44)
-
rb
_ data _ object _ alloc (11) -
rb
_ define _ singleton _ method (11) -
rb
_ f _ exit (11) -
rb
_ f _ missing (11) -
rb
_ generic _ ivar _ table (11) -
rb
_ iv _ get (11) -
rb
_ iv _ set (11) -
rb
_ mod _ private _ method (11) -
rb
_ mod _ public _ method (11) -
rb
_ obj _ call _ init (11) -
rb
_ obj _ extend (11) -
rb
_ obj _ instance _ eval (11) -
rb
_ obj _ respond _ to (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ thread _ join _ m (11) -
rb
_ undefined (11) - reason (11)
-
respond
_ to _ missing? (11) - resume (11)
-
ruby 1
. 6 feature (11) -
safe
_ load (17) -
scan
_ full (11) -
search
_ full (11) - select (11)
- send (22)
-
singleline
_ format (11) - strftime (11)
- sum (38)
- tap (11)
-
test
/ unit (1) -
to
_ a (11) -
to
_ ary (11) -
to
_ c (11) -
to
_ enum (22) -
to
_ hash (11) -
to
_ int (11) -
to
_ io (11) -
to
_ json (132) -
to
_ regexp (11) -
to
_ str (11) - trace (11)
-
trace
_ func (22) - transfer (11)
- unpack (11)
- unshift (11)
-
values
_ at (33) -
with
_ index (11) -
with
_ object (11) - wrap (11)
- write (7)
- xpopen (11)
- y (11)
- yield (22)
- zip (22)
- 制御構造 (11)
- 正規表現 (11)
検索結果
先頭5件
-
Kernel
# j(*objects) -> nil (18207.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
...与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
j([1,2,{"name" => "tanaka","age" => 19}])
# => [1,2,{"name":"tanaka","... -
ObjectSpace
. # each _ object {|object| . . . } -> Integer (9230.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないこ......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"... -
ObjectSpace
. # each _ object(klass) {|object| . . . } -> Integer (9230.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないこ......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"... -
ObjectSpace
. # each _ object -> Enumerator (9130.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないこ......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"... -
ObjectSpace
. # each _ object(klass) -> Enumerator (9130.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......、
Enumerator オブジェクトを返します。
次のクラスのオブジェクトについては繰り返しません
* Fixnum
* Symbol
* TrueClass
* FalseClass
* NilClass
とくに、klass に Fixnum や Symbol などのクラスを指定した場合は、
何も繰り返さないこ......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"... -
Enumerable
# each _ with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (6306.0) -
与えられた任意のオブジェクトと要素をブロックに渡し繰り返し、最初に与えられたオブジェクトを返します。
...返します。
ブロックを省略した場合は Enumerator を返します。
@param obj 任意のオブジェクトを指定します。
//emlist[例][ruby]{
evens = (1..10).each_with_object([]) {|i, a| a << i*2 }
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}
@see Enumerator#with_object... -
Enumerator
# with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (6300.0) -
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
...の各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
obj には任意のオブジェクトを渡すことができます。
ブロックが渡されなかった場合は、上で説明した繰り返しを実行し、
最後に obj を返す Enumer......do |x|
y << x
end
end
to_three_with_string = to_three.with_object("foo")
to_three_with_string.each do |x,string|
puts "#{string}: #{x}"
end
# => foo:0
# => foo:1
# => foo:2
//}
@param obj 繰り返しの各要素に添えて渡されるオブジェクト
@see Enumerable#each_with_object... -
struct RObject * ROBJECT(VALUE obj) (6300.0)
-
-
URI
. join(uri _ str , *path) -> object (6201.0) -
文字列 uri_str と path ... を URI として連結して得られる URI オブジェクトを返します。
...ponentError 各要素が適合しない場合に発生します。
@raise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p URI.join('http://www.ruby-lang.org/', '/ja/man-1.6/')
=> #<URI::HTTP:0x2010017a URL:http://www.ruby-lang.org/ja/man-1.6/>... -
BigDecimal
# to _ json(*args) -> String (6200.0) -
自身を JSON 形式の文字列に変換して返します。
...自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/bigdecimal'
BigD......ecimal('0.123456789123456789').to_json # => "{\"json_class\":\"BigDecimal\",\"b\":\"36:0.123456789123456789e0\"}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json...