114件ヒット
[101-114件を表示]
(0.039秒)
ライブラリ
- ビルトイン (114)
キーワード
-
instance
_ method (12) -
instance
_ methods (12) -
private
_ constant (9) -
public
_ constant (9) -
public
_ instance _ method (12) -
public
_ instance _ methods (12)
検索結果
-
Module
# instance _ method(name) -> UnboundMethod (14.0) -
self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。
...String で指定します。
@raise NameError self に存在しないメソッドを指定した場合に発生します。
@see Module#public_instance_method, Object#method
//emlist[例][ruby]{
class Interpreter
def do_a() print "there, "; end
def do_d() print "Hello "; end
def do_e() pr... -
Module
# private _ constant(*name) -> self (14.0) -
name で指定した定数の可視性を private に変更します。
...se NameError 存在しない定数を指定した場合に発生します。
@return self を返します。
@see Module#public_constant, Object#untrusted?
//emlist[例][ruby]{
module Foo
BAR = 'bar'
class Baz; end
QUX = 'qux'
class Quux; end
private_constant :QUX
private_constant :Q...