ライブラリ
- ビルトイン (129)
- coverage (7)
- delegate (11)
- fileutils (11)
- forwardable (33)
- json (121)
- rake (22)
-
rdoc
/ context (33) -
shell
/ command-processor (6) - win32ole (77)
クラス
- Coverage (7)
- Delegator (11)
- Module (49)
- Object (66)
-
RDoc
:: Context (33) -
Rake
:: FileList (22) - Refinement (3)
-
Shell
:: CommandProcessor (6) - WIN32OLE (44)
-
WIN32OLE
_ TYPE (22)
モジュール
- Enumerable (11)
- FileUtils (11)
- Forwardable (11)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - SingleForwardable (22)
キーワード
-
ARRAY
_ METHODS (11) -
DELEGATING
_ METHODS (11) - METHODS (11)
- NilClass (22)
- NoDelegateMethods (6)
- Ruby用語集 (11)
-
WIN32OLE
_ METHOD (11) -
def
_ delegators (11) -
def
_ instance _ delegators (11) -
def
_ single _ delegators (11) -
default
_ event _ sources (11) - grep (11)
-
import
_ methods (3) -
initialize
_ copy (11) -
initialize
_ methods _ etc (11) -
ins
_ methods _ i (11) -
ins
_ methods _ priv _ i (11) -
ins
_ methods _ prot _ i (11) -
instance
_ methods (11) - irb (11)
-
irb
/ completion (11) -
ole
_ func _ methods (11) -
ole
_ get _ methods (11) -
ole
_ methods (22) -
ole
_ put _ methods (11) -
ongoing
_ visibility= (11) -
private
_ instance _ methods (11) -
private
_ methods (11) -
protected
_ instance _ methods (11) -
protected
_ methods (11) -
public
_ instance _ methods (11) -
public
_ methods (22) -
rb
_ class _ instance _ methods (11) -
rb
_ class _ private _ instance _ methods (11) -
rb
_ class _ protected _ instance _ methods (11) -
rb
_ obj _ methods (11) -
rb
_ obj _ private _ methods (11) -
rb
_ obj _ protected _ methods (11) -
rb
_ obj _ singleton _ methods (11) -
ruby 1
. 8 . 2 feature (11) -
ruby2
_ keywords (5) -
set
_ visibility _ for (11) -
singleton
_ methods (11) - start (7)
-
to
_ json (99)
検索結果
先頭5件
-
static int ins
_ methods _ i(ID key , NODE *body , VALUE ary) (32316.0) -
rb_class_instance_methods() のイテレータブロック (通常版)。
...rb_class_instance_methods() のイテレータブロック (通常版)。... -
static int ins
_ methods _ priv _ i(ID key , NODE *body , VALUE ary) (32316.0) -
rb_class_instance_methods() のイテレータブロック (private メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(private メソッド版)。... -
static int ins
_ methods _ prot _ i(ID key , NODE *body , VALUE ary) (32316.0) -
rb_class_instance_methods() のイテレータブロック (protected メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(protected メソッド版)。... -
irb
/ completion (32030.0) -
irb の completion 機能を提供するライブラリです。
...irb の completion 機能を提供するライブラリです。
=== 使い方
$ irb -r irb/completion
とするか, ~/.irbrc 中に
require "irb/completion"
を入れてください.
irb実行中に require "irb/completion" してもよいです.
irb 実行中に [Tab] を押すとコ......全に補完します.
irb(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
irb(main):001:0> inspect
"main"
irb(main):002:0> foo = Objec......覧がでます.
irb(main):003:0> foo.
foo.== foo.frozen? foo.protected_methods
foo.=== foo.hash foo.public_methods
foo.=~ foo.id foo.respond_to?
foo.__id__ foo.inspect f... -
irb (26108.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......をスイッチ
nil
irb(main):004:0> jobs # jobのリスト
#0->irb on main (#<Thread:0x400fb7e4> : running)
#1->irb#1 on main (#<Thread:0x40125d64> : stop)
#2->irb#2 on Foo (#<Thread:0x4011d54c> : stop)
nil
irb(main):005:0> Foo.instance_methods # Foo#fooが... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (21414.0) -
メソッドの委譲先をまとめて設定します。
...am methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_singleton_deleg......ators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_delegator... -
Rake
:: FileList :: DELEGATING _ METHODS -> Array (21301.0) -
委譲するメソッドのリストです。
委譲するメソッドのリストです。 -
VALUE rb
_ class _ instance _ methods(int argc , VALUE *argv , VALUE mod) (18616.0) -
Module#instance_methods の実体。 モジュール mod に定義されている public メソッド名の リストを文字列の配列で返します。
...Module#instance_methods の実体。
モジュール mod に定義されている public メソッド名の
リストを文字列の配列で返します。... -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (18616.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
...Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。... -
VALUE rb
_ obj _ singleton _ methods(int argc , VALUE *argv , VALUE obj) (18616.0) -
Object#singleton_methods の実体。 オブジェクト obj に定義されている特異メソッド名のリストを 文字列の配列で返す。
...Object#singleton_methods の実体。
オブジェクト obj に定義されている特異メソッド名のリストを
文字列の配列で返す。...