534件ヒット
[501-534件を表示]
(0.077秒)
ライブラリ
- ビルトイン (186)
- delegate (24)
- forwardable (48)
- json (120)
-
rdoc
/ code _ object (24) -
rdoc
/ context (36) -
rdoc
/ stats (24) - win32ole (72)
クラス
- Delegator (24)
- Module (60)
- Object (96)
- Proc (6)
-
RDoc
:: CodeObject (24) -
RDoc
:: Context (36) -
RDoc
:: Stats (24) - WIN32OLE (48)
-
WIN32OLE
_ TYPE (24)
モジュール
- Enumerable (24)
- Forwardable (24)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - SingleForwardable (24)
キーワード
-
def
_ delegators (24) -
def
_ instance _ delegators (12) -
def
_ single _ delegators (12) -
default
_ event _ sources (12) -
document
_ self= (12) - grep (24)
-
initialize
_ copy (12) -
initialize
_ methods _ etc (12) -
instance
_ methods (12) -
num
_ methods (12) -
num
_ methods= (12) -
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ methods (24) -
ole
_ put _ methods (12) -
ongoing
_ visibility= (12) -
private
_ instance _ methods (12) -
private
_ methods (12) -
protected
_ instance _ methods (12) -
protected
_ methods (24) -
public
_ instance _ methods (12) -
public
_ methods (24) -
remove
_ methods _ etc (12) -
ruby2
_ keywords (6) - send (24)
-
set
_ visibility _ for (12) -
singleton
_ methods (12) -
to
_ json (108) -
to
_ json _ raw _ object (12) -
undef
_ method (12)
検索結果
先頭3件
-
Enumerable
# grep(pattern) -> [object] (107.0) -
pattern === item が成立する要素を全て含んだ配列を返します。
...す。
@param pattern 「===」メソッドを持つオブジェクトを指定します。
//emlist[例][ruby]{
['aa', 'bb', 'cc', 'dd', 'ee'].grep(/[bc]/) # => ["bb", "cc"]
Array.instance_methods.grep(/gr/) # => [:grep, :grep_v, :group_by]
//}
@see Enumerable#select
@see Enumerable#grep_v... -
Enumerable
# grep(pattern) {|item| . . . } -> [object] (107.0) -
pattern === item が成立する要素を全て含んだ配列を返します。
...す。
@param pattern 「===」メソッドを持つオブジェクトを指定します。
//emlist[例][ruby]{
['aa', 'bb', 'cc', 'dd', 'ee'].grep(/[bc]/) # => ["bb", "cc"]
Array.instance_methods.grep(/gr/) # => [:grep, :grep_v, :group_by]
//}
@see Enumerable#select
@see Enumerable#grep_v... -
Module
# undef _ method(*name) -> self (49.0) -
このモジュールのインスタンスメソッド name を未定義にします。
...さい。
//emlist[例][ruby]{
class A
def ok
puts 'A'
end
end
class B < A
def ok
puts 'B'
end
end
B.new.ok # => B
# undef_method の場合はスーパークラスに同名のメソッドがあっても
# その呼び出しはエラーになる
class B
undef_method :ok
end
B.n......る
class B
remove_method :ok
end
B.new.ok # => A
//}
また、undef 文と undef_method の違いは、
メソッド名を String または Symbol で与えられることです。
//emlist[例][ruby]{
module M1
def foo
end
def self.moo
undef foo
end
end
M1.instance_methods false......#=> ["foo"]
M1.moo
M1.instance_methods false #=> []
module M2
def foo
end
def self.moo
undef_method :foo
end
end
M2.instance_methods false #=> ["foo"]
M2.moo
M2.instance_methods false #=> []
//}...