別のキーワード
種類
ライブラリ
- ビルトイン (479)
- bigdecimal (96)
-
cgi
/ html (48) - date (24)
-
irb
/ ext / save-history (12) -
irb
/ inspector (24) - json (48)
-
minitest
/ mock (4) -
minitest
/ spec (6) -
minitest
/ unit (70) - mkmf (12)
-
net
/ http (216) - openssl (24)
- optparse (144)
- rake (36)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (12) -
rdoc
/ context (24) -
rdoc
/ generator / darkfish (12) -
rdoc
/ generator / ri (12) -
rdoc
/ markdown (24) -
rexml
/ document (12) -
ripper
/ filter (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ specification (12) -
rubygems
/ user _ interaction (36) -
shell
/ command-processor (6) - win32ole (12)
クラス
- Array (18)
- BigDecimal (96)
- Complex (18)
- Date (24)
- Enumerator (18)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (24) - Float (36)
-
Gem
:: GemPathSearcher (12) -
Gem
:: Specification (12) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) -
IRB
:: Context (12) -
IRB
:: Inspector (12) -
JSON
:: State (24) -
MiniTest
:: Mock (3) -
MiniTest
:: Spec (5) -
MiniTest
:: Unit (23) -
MiniTest
:: Unit :: TestCase (13) -
Net
:: HTTP (204) -
Net
:: HTTPRequest (12) - Numeric (80)
- Object (48)
-
OpenSSL
:: PKey :: EC :: Point (24) - OptionParser (144)
-
RDoc
:: Context (24) -
RDoc
:: Generator :: Darkfish (12) -
RDoc
:: Generator :: RI (12) -
RDoc
:: Markdown (24) -
REXML
:: Elements (12) -
Rake
:: Application (24) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (12) - Range (12)
-
Ripper
:: Filter (12) -
Shell
:: CommandProcessor (6) - Struct (52)
- WIN32OLE (12)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) - Enumerable (96)
- IRB (12)
- JSON (24)
- Kernel (12)
- MiniTest (2)
-
MiniTest
:: Assertions (26) - Process (36)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10)
キーワード
- Assertion (1)
- Assertions (1)
-
EXCEPTION
_ INFINITY (12) - GC (12)
- GREGORIAN (12)
- INFINITY (24)
- Infinity (12)
-
Init
_ Proc (12) -
Init
_ Thread (12) -
Init
_ eval (12) -
Init
_ heap (12) -
Init
_ load (12) -
Init
_ stack (12) -
Init
_ sym (12) -
Init
_ var _ tables (12) - Inspector (12)
- JULIAN (12)
- Location (12)
-
MINI
_ DIR (1) - MiniTest (1)
- MinusInfinity (12)
- Mock (1)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 1 . 0 (4) -
PASSTHROUGH
_ EXCEPTIONS (1) -
RLIM
_ INFINITY (12) -
SIGN
_ NEGATIVE _ FINITE (12) -
SIGN
_ NEGATIVE _ INFINITE (12) -
SIGN
_ POSITIVE _ FINITE (12) -
SIGN
_ POSITIVE _ INFINITE (12) -
SUPPORTS
_ INFO _ SIGNAL (1) - Skip (1)
- Spec (1)
- TestCase (1)
- Unit (1)
- VERSION (1)
- [] (12)
-
_ _ name _ _ (1) -
_ assertions (1) -
_ assertions= (1) - after (1)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count (1) -
assertion
_ count= (1) - autorun (1)
- before (1)
-
buffer
_ initial _ length (12) -
buffer
_ initial _ length= (12) -
capture
_ io (1) - chunk (12)
- copy (12)
-
create
_ makefile (12) - current (1)
-
definition
_ lists (12) -
definition
_ lists= (12) - delete (12)
-
element
_ init (48) - errors (1)
- errors= (1)
-
exception
_ details (1) - expect (1)
- failures (1)
- failures= (1)
-
filter
_ backtrace (1) - finite? (42)
- flunk (1)
- infinite? (42)
- infinity? (12)
- inherited (1)
-
init
_ gemspecs (12) -
init
_ mark _ stack (12) -
init
_ save _ history (12) - initgroups (12)
- initialize (42)
-
initialize
_ classes _ and _ modules (12) -
initialize
_ clone (12) -
initialize
_ copy (12) -
initialize
_ dup (12) -
initialize
_ methods _ etc (12) - inject (48)
-
irb
/ init (12) - it (1)
-
keyword
_ init? (4) - location (1)
- lock (12)
- lookup (12)
-
minitest
/ autorun (12) -
minitest
/ mock (12) -
minitest
/ spec (12) -
minitest
/ unit (12) - mkcol (12)
- move (12)
-
mu
_ pp (1) - new (87)
- of (10)
-
ole
_ activex _ initialize (12) -
on
_ head (12) -
on
_ tail (12) - output= (1)
- parse (36)
- parse! (12)
- pass (1)
- passed? (1)
- patch (24)
- ppid (12)
-
process
_ args (1) - produce (6)
- propfind (12)
- proppatch (12)
- puke (1)
- put (12)
- put2 (24)
-
rb
_ catch (12) -
rb
_ class _ initialize (12) -
rb
_ define _ global _ function (12) -
rb
_ exec _ arg _ init (1) -
rb
_ mod _ initialize (12) -
rb
_ obj _ call _ init (12) -
rb
_ thread _ initialize (12) -
rdoc
/ parser / c (12) - reduce (36)
- report (1)
- report= (1)
-
request
_ put (24) - reset (1)
-
ruby 1
. 8 . 4 feature (12) -
ruby
_ init (12) - run (14)
-
run
_ test _ suites (1) -
set
_ to _ infinity! (12) - setup (1)
- size (31)
- skip (1)
- skips (1)
- skips= (1)
-
slice
_ before (12) - socket (12)
-
st
_ init _ numtable (12) -
st
_ init _ numtable _ with _ size (12) -
st
_ init _ strtable (12) -
st
_ init _ strtable _ with _ size (12) -
st
_ init _ table (12) -
st
_ init _ table _ with _ size (12) -
start
_ time (1) -
start
_ time= (1) - status (1)
- step (62)
- sum (42)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - teardown (1)
-
test
_ count (1) -
test
_ count= (1) -
test
_ methods (1) -
test
_ order (1) -
test
_ suites (1) -
to
_ a (12) -
top
_ local _ init (12) - trace (12)
- unlock (12)
- verify (1)
-
yaml
_ initialize (12)
検索結果
先頭5件
-
Thread
:: Backtrace :: Location (18.0) -
Ruby のフレームを表すクラスです。
...rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
//}
例2の実行結果:
init.rb:4:in `initialize'
init.rb:8:in `new'
init.rb:8:in `<main>'
=== 参考
* Ruby VM ア... -
rdoc
/ parser / c (18.0) -
C 言語で記述されたソースコードから組み込みクラス/モジュールのドキュメン トを解析するためのサブライブラリです。
...rb_ary_flatten_bang(ary);
return ary;
}
...
void
Init_Array()
{
...
rb_define_method(rb_cArray, "flatten", rb_ary_flatten, 0);
上記の例の場合、rb_ary_flatten 関数と Init_Array 関数は同じファイルに記
述されている必要があり......指定した Ruby のクラスのものに指定します。同じ
.c ファイルに複数のクラス定義がある場合などのように、Init_xxx 関数の
xxx の部分がクラス名と同一ではない場合に使用します。
: Document-method: name
記述する内容を name... -
ruby 1
. 8 . 4 feature (18.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...* ((<ruby 1.8.4 feature/"Ruby/Tk">))
* ((<ruby 1.8.4 feature/REXML [compat]>))
* ((<ruby 1.8.4 feature/TCPSocket#initialize [bug]>))
* ((<ruby 1.8.4 feature/TCPServer#initialize [bug]>))
* ((<ruby 1.8.4 feature/"optparse">))
* ((<ruby 1.8.4 feature/"find">))
* ((<ruby 1.8.4 feature/Ic......しました。((<ruby-dev:27964>))
module Foo
def initialize
super
end
end
class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end
Bar.new......# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:3:in `initialize': method `initialize' called on terminated object (0xb7dd2bec) (NotImplementedError)
from -:10:in `initialize'
from -:14
# => ruby 1.8.4 (2005-12-16) [i686-linux]
: set_trace_func [... -
Process
. # ppid -> Integer (16.0) -
親プロセスのプロセス ID を返します。UNIX では実際の親プロセスが終 了した後は ppid は 1 (initの pid)になります。
...親プロセスのプロセス ID を返します。UNIX では実際の親プロセスが終
了した後は ppid は 1 (initの pid)になります。
@see getppid(2)... -
NEWS for Ruby 2
. 1 . 0 (12.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...す。
* GC
* 改良: RGenGC として知られている世代別GCが導入しました
* 追加した環境変数
* RUBY_GC_HEAP_INIT_SLOTS
* RUBY_GC_HEAP_FREE_SLOTS
* RUBY_GC_HEAP_GROWTH_FACTOR
* RUBY_GC_HEAP_GROWTH_MAX_SLOTS
* RUBY_GC_MALLOC_LIMIT_MAX......* 廃止した環境変数
* RUBY_FREE_MIN (RUBY_GC_HEAP_FREE_SLOTS を代わりに使います)
* RUBY_HEAP_MIN_SLOTS (RUBY_GC_HEAP_INIT_SLOTS を代わりに使います)
* Integer
* 追加: Fixnum#bit_length
* 追加: Bignum#bit_length
* Bignum の性能向上......on_method)
* Module
* 追加: Module#using, which activates refinements of the specified module only
in the current class or module definition.
* 追加: Module#singleton_class? レシーバーが特異クラスであれば true を返します。
レシーバーが通常の... -
OptionParser
# on _ head(*arg , &block) -> self (12.0) -
オプションを取り扱うためのブロックを自身の持つリストの最初に登録します。
...][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
puts opts.help
# => Usage: test [options]
# -i, --init
# -u, --update
# -h, --help
//}
@see OptionParser#on, OptionParser#on_tail... -
OptionParser
# on _ tail(*arg , &block) -> self (12.0) -
オプションを取り扱うためのブロックを自身の持つリストの最後に登録します。
...[ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
puts opts.help
# => Usage: test [options]
# -i, --init
# -u, --update
# -h, --help
//}
//emlist[例][ruby]{
require "optparse"
opts... -
OptionParser
# to _ a -> [String] (12.0) -
サマリの各行を要素とした配列を返します。
...を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (12.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
#... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (12.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
#... -
Struct
. new(*args) -> Class (12.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...るための可変長引数。String または Symbol を指定します。
//emlist[例][ruby]{
Point = Struct.new(:x, :y, keyword_init: true) # => Point(keyword_init: true)
Point.new(x: 1, y: 2) # => #<struct Point x=1, y=2>
Point.new(x: 1) # => #<struct Point x=1, y=nil>
Point.new(y: 2)...