908件ヒット
[1-100件を表示]
(0.139秒)
ライブラリ
- ビルトイン (668)
- csv (24)
- delegate (24)
- fiddle (24)
-
fiddle
/ import (12) -
json
/ add / symbol (12) - openssl (12)
- ostruct (12)
- pathname (12)
-
rexml
/ parsers / sax2parser (60) -
rubygems
/ installer (12) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12)
クラス
-
ARGF
. class (10) - Binding (36)
- CSV (24)
- Delegator (24)
-
Encoding
:: Converter (48) -
Fiddle
:: Handle (24) -
Gem
:: Installer (12) - Hash (8)
- IO (12)
- MatchData (1)
- Module (172)
- Object (96)
-
OpenSSL
:: PKey :: EC :: Group (12) - OpenStruct (12)
- Pathname (12)
-
REXML
:: Parsers :: SAX2Parser (60) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Symbol (213)
- Thread (12)
モジュール
- Enumerable (72)
-
Fiddle
:: Importer (12)
キーワード
- <=> (12)
- == (12)
- =~ (12)
- [] (72)
- []= (12)
-
alias
_ method (4) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - casecmp (12)
- casecmp? (9)
-
class
_ variables (12) - cleanpath (12)
- constants (12)
-
define
_ method (24) -
define
_ singleton _ method (24) -
end
_ with? (6) -
generate
_ bin _ symlink (12) -
header
_ convert (24) -
import
_ symbol (12) - inject (36)
-
instance
_ methods (12) - listen (60)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - match (12)
- methods (12)
-
module
_ function (12) -
named
_ captures (1) -
new
_ ostruct _ member (12) -
point
_ conversion _ form= (12) -
primitive
_ convert (48) - private (12)
-
private
_ instance _ methods (12) -
private
_ methods (12) - protected (12)
-
protected
_ instance _ methods (12) -
protected
_ methods (24) - public (12)
-
public
_ instance _ methods (12) -
public
_ methods (24) -
read
_ nonblock (22) - reduce (36)
-
respond
_ to _ missing? (12) -
singleton
_ methods (12) - slice (60)
-
start
_ with? (6) - symlink (18)
- symlink? (18)
-
to
_ json (12) -
transform
_ keys! (8)
検索結果
先頭5件
-
Fiddle
:: Handle # sym(func) -> Integer (21114.0) -
関数やグローバル変数 func へのポインタを取得し、整数として返します。
...数として返します。
@param func 得たいシンボルの名前を文字列で与えます。
@raise Fiddle::DLError シンボルが見つからなかった時に発生します。
require 'fiddle'
h = Fiddle::Handle.new('libc.so.6')
p h.sym('strlen') # 関数ポインタのアド... -
Gem
:: Installer # generate _ bin _ symlink(filename , bindir) (12213.0) -
Gem に入っているアプリケーションを実行するためのシンボリックリンクを作成します。
...現在インストールされている Gem よりも新しい Gem をインストールするときは、
シンボリックリンクを更新します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。... -
Shell
# symlink(old , new) -> 0 (12213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink... -
Shell
:: CommandProcessor # symlink(old , new) -> 0 (12213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink... -
Shell
:: Filter # symlink(old , new) -> 0 (12213.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink... -
Fiddle
:: Importer # import _ symbol(name) -> Fiddle :: Pointer (12207.0) -
取り込んだライブラリからシンボルをインポートします。
...取り込んだライブラリからシンボルをインポートします。
返り値はシンボルがロードされたメモリのアドレスを持つ Fiddle::Pointer
オブジェクトを返します。
@param name シンボル名(文字列)... -
Shell
# symlink?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink?... -
Shell
:: CommandProcessor # symlink?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink?... -
Shell
:: Filter # symlink?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink?... -
Module
# class _ variables(inherit = true) -> [Symbol] (9207.0) -
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
...@param inherit false を指定しない場合はスーパークラスやインクルードして
いるモジュールのクラス変数を含みます。
//emlist[例][ruby]{
class One
@@var1 = 1
end
class Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_......variables # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#constants... -
Module
# module _ function(name) -> String | Symbol (9207.0) -
メソッドをモジュール関数にします。
...引数が与えられた時には配列にまとめて返します。
引数なしの時は nil を返します。
@param name String または Symbol を 0 個以上指定します。
=== 注意
module_function はメソッドに「モジュール関数」という属性をつけるメ
ソッド......もモジュール関数の別名は定義できません。
//emlist[例][ruby]{
module M
def foo
p "foo"
end
module_function :foo
alias bar foo
end
M.foo # => "foo"
M.bar # => undefined method `bar' for Foo:Module (NoMethodError)
//}
このコードでは、モジュール関数......付けるには、
以下のように、先に別名を定義してから
それぞれをモジュール関数にしなければいけません。
//emlist[例][ruby]{
module M
def foo
p "foo"
end
alias bar foo
module_function :foo, :bar
end
M.foo # => "foo"
M.bar # => "foo"
//}... -
Symbol
# slice(nth , len) -> String | nil (9117.0) -
nth 番目から長さ len の部分文字列を新しく作って返します。
...nth 番目から長さ len の部分文字列を新しく作って返します。
(self.to_s[nth, len] と同じです。)
@param nth 文字の位置を表す整数を指定します。
@param len 文字列の長さを指定します。
:foo[1, 2] # => "oo"...