るりまサーチ

最速Rubyリファレンスマニュアル検索!
1084件ヒット [1-100件を表示] (0.107秒)

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d
  4. rsa d=
  5. matrix d

モジュール

検索結果

<< 1 2 3 ... > >>

Fiddle::Handle#sym(func) -> Integer (18108.0)

関数やグローバル変数 func へのポインタを取得し、整数として返します。

...@param func 得たいシンボルの名前を文字列で与えます。

@raise Fiddle::DLError シンボルが見つからなかった時に発生します。

require 'fiddle'

h = Fiddle::Handle.new('libc.so.6')
p h.sym('strlen') # 関数ポインタのアドレスを整数で表示...

RDoc::Context#find_local_symbol(symbol) (12301.0)

Finds a method, constant, attribute, module or files named +symbol+ in this context

...Finds a method, constant, attribute, module or files named +symbol+ in
this context...

RDoc::Context#find_symbol(symbol, method=nil) (12301.0)

Look up the given symbol. If method is non-nil, then we assume the symbol references a module that contains that method

...Look up the given symbol. If method is non-nil, then we assume
the symbol references a module that contains that method...

RDoc::TopLevel#find_local_symbol(name) -> RDoc::NormalClass | RDoc::SingleClass | RDoc::NormalModule | RDoc::AnyMethod | RDoc::Alias | RDoc::Attr | RDoc::Constant (12201.0)

クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。

クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。

Fiddle::Importer#import_symbol(name) -> Fiddle::Pointer (9201.0)

取り込んだライブラリからシンボルをインポートします。

...取り込んだライブラリからシンボルをインポートします。

返り値はシンボルがロードされたメモリのアドレスを持つ Fiddle::Pointer
オブジェクトを返します。

@param name シンボル名(文字列)...

絞り込み条件を変える

Module#module_function(name) -> String | Symbol (9201.0)

メソッドをモジュール関数にします。

...時には配列にまとめて返します。
引数なしの時は nil を返します。

@param name String または Symbol を 0 個以上指定します。

=== 注意
module_function はメソッドに「モジュール関数」という属性をつけるメ
ソッドではなく、プライ...
...ル関数の別名は定義できません。

//emlist[例][ruby]{
module M
d
ef foo
p "foo"
end
module_function :foo
alias bar foo
end

M.foo # => "foo"
M.bar # => undefined method `bar' for Foo:Module (NoMethodError)
//}

このコードでは、モジュール関数 foo と
プラ...
...付けるには、
以下のように、先に別名を定義してから
それぞれをモジュール関数にしなければいけません。

//emlist[例][ruby]{
module M
d
ef foo
p "foo"
end

alias bar foo
module_function :foo, :bar
end

M.foo # => "foo"
M.bar # => "foo"
//}...

REXML::AttlistDecl#node_type -> Symbol (9201.0)

Symbol :attlistdecl を返します。

...Symbol :attlistdecl を返します。...

REXML::XMLDecl#node_type -> Symbol (9201.0)

シンボル :xmldecl を返します。

...シンボル :xmldecl を返します。...

Shell::CommandProcessor#symlink(old, new) -> 0 (9201.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new シンボリックリンクを表す文字列を指定します。

@see File.symlink...
<< 1 2 3 ... > >>