204件ヒット
[201-204件を表示]
(0.096秒)
ライブラリ
- ビルトイン (204)
キーワード
-
method
_ defined? (12) -
private
_ class _ method (24) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ method _ defined? (12)
検索結果
-
Module
# public(names) -> Array (33.0) -
メソッドを public に設定します。
...ます。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定し......します。
//emlist[例][ruby]{
def foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # =...