920件ヒット
[1-100件を表示]
(0.147秒)
種類
- インスタンスメソッド (770)
- 特異メソッド (95)
- クラス (33)
- 関数 (11)
- 文書 (11)
ライブラリ
- ビルトイン (239)
- fiddle (330)
-
fiddle
/ import (22) - openssl (220)
- pathname (11)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - stringio (18)
- zlib (22)
クラス
-
ARGF
. class (36) - Data (4)
-
Fiddle
:: CStruct (11) -
Fiddle
:: Pointer (319) - IO (18)
- Module (5)
-
OpenSSL
:: PKey :: EC (33) -
OpenSSL
:: PKey :: EC :: Group (33) -
OpenSSL
:: PKey :: EC :: Point (132) - Pathname (11)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (22)
- StringIO (18)
- Struct (14)
- TracePoint (140)
-
Zlib
:: Inflate (22)
モジュール
-
Fiddle
:: Importer (11)
キーワード
- + (11)
- +@ (11)
- - (11)
- -@ (11)
- <=> (11)
- == (22)
- Error (11)
- Pointer (11)
- Ruby用語集 (11)
- [] (33)
- []= (22)
- binding (2)
-
callee
_ id (11) -
check
_ point (18) - codepoints (39)
- define (4)
-
defined
_ class (11) -
dh
_ compute _ key (11) - disable (22)
-
each
_ codepoint (55) - enable (22)
- enabled? (11)
- eql? (22)
-
eval
_ script (6) - event (11)
-
finish
_ all _ jobs (18) - free (11)
- free= (11)
- generator (11)
- group (11)
-
import
_ symbol (11) - infinity? (11)
- invert! (11)
-
is
_ pointer _ to _ heap (11) - lineno (11)
-
make
_ affine! (11) - malloc (11)
-
method
_ id (11) - mountpoint? (11)
- new (58)
- null? (11)
-
on
_ curve? (11) -
point
_ conversion _ form (11) -
point
_ conversion _ form= (11) - ptr (11)
-
public
_ key (11) -
public
_ key= (11) - ref (11)
-
return
_ value (11) -
ruby2
_ keywords (5) - self (11)
-
set
_ to _ infinity! (11) - size (11)
- size= (11)
- sync (11)
-
sync
_ point? (11) -
to
_ bn (11) -
to
_ i (11) -
to
_ int (11) -
to
_ ptr (22) -
to
_ s (22) -
to
_ str (22) -
to
_ value (11)
検索結果
先頭5件
-
static inline int is
_ pointer _ to _ heap(void *ptr) (32300.0) -
-
OpenSSL
:: PKey :: EC :: Point (27000.0) -
楕円曲線暗号の公開鍵となる曲線上の点を表します。
楕円曲線暗号の公開鍵となる曲線上の点を表します。 -
OpenSSL
:: PKey :: EC :: Point # infinity? -> bool (21312.0) -
自身が無限遠点であるならば true を返します。
...自身が無限遠点であるならば true を返します。
@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します
@see OpenSSL::PKey::EC::Point#set_to_infinity!... -
OpenSSL
:: PKey :: EC :: Point # set _ to _ infinity! -> self (21312.0) -
自身を無限遠点に設定します。
...自身を無限遠点に設定します。
@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します
@see OpenSSL::PKey::EC::Point#infinity!... -
TracePoint
# binding -> Binding | nil (18500.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call)......do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
TracePoint
# defined _ class -> Class | module (18300.0) -
メソッドを定義したクラスかモジュールを返します。
.../emlist[例][ruby]{
class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します。
//emlist[例][ruby]{
module......M; def foo; end; end
class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、Kernel.#set_trace_func の 6......スではなく元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@s... -
TracePoint
# lineno -> Integer (18300.0) -
発生したイベントの行番号を返します。
...発生したイベントの行番号を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
tp.lineno
end
trace.enable
foo 1
# => 1
# 3
//}... -
String
# codepoints {|codepoint| block } -> self (15500.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...の配列を返します。(self.each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作しま......す。
Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# each _ codepoint {|codepoint| block } -> self (15500.0) -
文字列の各コードポイントに対して繰り返します。
...F-8/UTF-16(BE|LE)/UTF-32(BE|LE) 以外のエンコーディングに対しては
各文字のバイナリ表現由来の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーる......ど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see String#codepoints... -
StringIO
# codepoints {|codepoint| . . . } -> self (15500.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (15500.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint...