るりまサーチ

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

別のキーワード

  1. psych psych_y
  2. psych y
  3. kernel y
  4. kernel psych_y
  5. y syck

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Fiddle::Handle#sym(func) -> Integer (18208.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) (12401.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) (12401.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 (12301.0)

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

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

Symbol#to_sym -> self (12202.0)

self を返します。

self を返します。

例:

:foo.intern # => :foo

@see String#intern

絞り込み条件を変える

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

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

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

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

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

File::Stat#symlink? -> false (12201.0)

シンボリックリンクである時に真を返します。 ただし、File::Statは自動的にシンボリックリンクをたどっていくので 常にfalseを返します。

...たどっていくので
常にfalseを返します。

//emlist[][ruby]{
require 'fileutils'
outfile = $0 + ".ln"
FileUtils.ln_s($0, outfile)
p File::Stat.new(outfile).symlink? #=> false
p File.lstat(outfile).symlink? #=> true
p FileTest.symlink?(outfile) #=> true
//}

@see File.lstat...

Gem::Installer#generate_bin_symlink(filename, bindir) (12201.0)

Gem に入っているアプリケーションを実行するためのシンボリックリンクを作成します。

Gem に入っているアプリケーションを実行するためのシンボリックリンクを作成します。

現在インストールされている Gem よりも新しい Gem をインストールするときは、
シンボリックリンクを更新します。

@param filename ファイル名を指定します。

@param bindir 実行ファイルを配置するディレクトリを指定します。

Matrix#antisymmetric? -> bool (12201.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

...[ruby]{
require 'matrix'

Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true

Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmet...
...ric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#skew_symmetric? -> bool (12201.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

...[ruby]{
require 'matrix'

Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true

Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmet...
...ric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>