クラス
-
ARGF
. class (198) - Array (85)
- Bignum (6)
- Binding (6)
- Complex (22)
- Data (8)
- Dir (134)
- Encoding (71)
-
Encoding
:: Converter (99) -
Encoding
:: InvalidByteSequenceError (33) -
Encoding
:: UndefinedConversionError (22) -
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) - Exception (73)
- FalseClass (22)
- Fiber (8)
- File (176)
-
File
:: Stat (22) - Fixnum (6)
- Float (33)
- Hash (99)
- IO (388)
- Integer (69)
- LoadError (11)
- MatchData (88)
- Method (33)
- Module (243)
- Mutex (2)
- NameError (11)
- Numeric (11)
- Object (225)
- Proc (33)
-
Process
:: Status (22) - Random (26)
- Range (34)
- Rational (22)
- Regexp (173)
- RubyVM (11)
-
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (225) - SignalException (11)
- String (1812)
- Struct (294)
- Symbol (136)
- SyntaxError (2)
- Thread (113)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: Mutex (9) - Time (60)
- TracePoint (226)
- TrueClass (55)
- UnboundMethod (33)
- UncaughtThrowError (10)
モジュール
- Enumerable (44)
-
File
:: Constants (22) - GC (44)
-
GC
:: Profiler (11) - Kernel (734)
- ObjectSpace (11)
- Process (77)
-
Process
:: Sys (66) -
RubyVM
:: AbstractSyntaxTree (24) -
RubyVM
:: MJIT (6) - Signal (33)
キーワード
-
$ " (11) -
$ & (11) -
$ & # 39; (11) -
$ * (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -i (11) -
$ / (11) -
$ 0 (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (11) -
$ ; (11) -
$ @ (11) -
$ FILENAME (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ PROGRAM _ NAME (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) - % (11)
- & (11)
- * (22)
- + (11)
- +@ (9)
- -@ (9)
- << (11)
- <=> (11)
- == (33)
- === (22)
- =~ (22)
- AbstractSyntaxTree (6)
-
CESU
_ 8 (5) - Complex (12)
- EINTR (11)
- ENETRESET (11)
- ENOATTR (11)
- ENOSTR (11)
- ENOTRECOVERABLE (11)
- ESTRPIPE (11)
- Float (6)
-
INSTRUCTION
_ NAMES (11) - InstructionSequence (11)
- Integer (6)
- Location (11)
- NULL (11)
- Node (6)
-
RUBY
_ COPYRIGHT (11) -
RUBY
_ DESCRIPTION (11) -
RUBY
_ ENGINE (11) -
RUBY
_ ENGINE _ VERSION (9) -
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) -
RUBY
_ REVISION (5) -
RUBY
_ VERSION (11) - Rational (6)
- String (22)
- TRUE (8)
- TRUNC (11)
- TracePoint (11)
- TrueClass (11)
- WUNTRACED (11)
- WaitReadable (11)
- [] (165)
- []= (66)
- ^ (11)
-
_ _ dir _ _ (11) -
_ dump (11) - ` (11)
-
absolute
_ path (33) -
add
_ trace _ func (11) - argv0 (11)
-
asciicompat
_ encoding (11) - asctime (11)
- attr (33)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - autoload? (22)
- backtrace (22)
-
backtrace
_ locations (33) -
base
_ label (22) - basename (11)
- binding (11)
- binread (11)
- binwrite (11)
- byteindex (2)
- byterindex (2)
- bytes (39)
- bytesize (11)
- byteslice (33)
- bytesplice (4)
-
callee
_ id (11) - caller (33)
-
caller
_ locations (22) - capitalize (11)
- capitalize! (11)
- captures (11)
- casecmp (11)
- casecmp? (8)
- center (11)
- chars (22)
- children (26)
- chomp (11)
- chomp! (11)
- chop (11)
- chop! (11)
- chr (33)
-
class
_ variables (11) - clear (11)
- clone (22)
- codepoints (22)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - concat (19)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- convert (11)
-
copy
_ stream (22) - count (11)
- ctime (11)
- deconstruct (2)
-
deconstruct
_ keys (2) - dedup (2)
-
defined
_ class (11) - delete (33)
- delete! (11)
-
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) -
destination
_ encoding _ name (22) - dev (11)
- dig (9)
- dirname (11)
- disable (22)
- disasm (22)
- disassemble (22)
- downcase (11)
- downcase! (11)
- each (22)
-
each
_ byte (22) -
each
_ char (22) -
each
_ codepoint (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ line (22) -
each
_ pair (22) - empty? (11)
- enable (22)
- enabled? (11)
- encode (33)
- encode! (22)
- encoding (11)
-
end
_ with? (11) - entries (39)
- eql? (22)
- equal? (11)
-
error
_ bytes (11) -
error
_ char (11) - escape (11)
- eval (11)
-
eval
_ script (6) - event (11)
- exit (22)
- extname (11)
- fail (11)
- fetch (33)
- filename (11)
- filter (12)
- finish (11)
-
first
_ column (6) -
first
_ lineno (17) -
force
_ encoding (11) - format (11)
- ftype (22)
-
garbage
_ collect (22) - getbyte (11)
- getc (22)
- getrlimit (11)
- gets (77)
- getwd (11)
- glob (15)
-
grapheme
_ clusters (14) - gsub (66)
- gsub! (44)
- hash (22)
- hex (11)
- home (22)
- id2name (11)
- include? (11)
- index (18)
-
inplace
_ mode (11) - insert (11)
-
insert
_ output (11) - inspect (361)
-
instance
_ methods (11) -
instruction
_ sequence (6) - integer? (11)
- intern (11)
- join (22)
- key (11)
- keys (11)
-
keyword
_ init? (3) - label (22)
-
last
_ column (6) -
last
_ lineno (6) -
last
_ match (11) - length (22)
- lineno (22)
- lines (22)
- load (11)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
locale
_ charmap (11) - lstrip! (11)
- match (44)
- match? (16)
- members (22)
-
method
_ defined? (6) -
method
_ id (11) - methods (11)
-
module
_ function (4) - name (35)
- name= (9)
-
name
_ list (11) -
named
_ captures (11) - names (33)
- new (94)
- next (11)
- next! (11)
- oct (11)
- of (19)
- ord (11)
- pack (19)
- parameters (6)
- parse (8)
-
parse
_ file (8) - partition (11)
- path (79)
- pause (6)
- pipe (22)
-
pre
_ match (11) - pread (7)
- prepend (19)
- private (8)
-
private
_ instance _ methods (11) -
private
_ method _ defined? (6) -
private
_ methods (11) - protected (4)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (6) -
protected
_ methods (11) - public (8)
-
public
_ instance _ methods (11) -
public
_ method _ defined? (6) -
public
_ methods (11) - putback (22)
- pwd (11)
- pwrite (7)
- quote (11)
- raise (27)
-
raised
_ exception (11) -
raw
_ seed (2) - read (66)
-
read
_ nonblock (22) -
readagain
_ bytes (11) - readchar (22)
- readline (77)
- readlines (77)
- readlink (11)
- readpartial (22)
- realdirpath (11)
- realpath (11)
- replace (11)
- replacement (11)
- replacement= (11)
- result (11)
-
return
_ value (11) - reverse (11)
- reverse! (11)
- rindex (11)
- rpartition (11)
- rstrip! (11)
- scan (22)
- scrub (33)
- scrub! (33)
- select (22)
- self (11)
-
set
_ backtrace (11) -
set
_ encoding (22) -
set
_ trace _ func (22) - setbyte (11)
- setproctitle (11)
- setregid (11)
- setresgid (11)
- setresuid (11)
- setreuid (11)
- setrgid (11)
- setrlimit (22)
- setruid (11)
- shift (11)
- signame (11)
- signm (11)
-
singleton
_ methods (11) - size (22)
- slice (121)
- slice! (66)
- source (11)
-
source
_ location (39) - split (28)
- sprintf (11)
- squeeze (11)
- squeeze! (11)
- start (11)
-
start
_ with? (7) - stat (10)
- status (11)
- store (11)
- stress (11)
- stress= (11)
- strftime (11)
- strip! (11)
- sub (55)
- sub! (33)
- succ (11)
- succ! (11)
- sum (11)
- swapcase (11)
- swapcase! (11)
- sysread (11)
- syswrite (11)
-
to
_ a (50) -
to
_ binary (9) -
to
_ c (11) -
to
_ f (11) -
to
_ h (6) -
to
_ i (11) -
to
_ path (11) -
to
_ r (11) -
to
_ s (289) -
to
_ str (11) -
to
_ sym (11) - tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) - trace (11)
-
trace
_ var (33) - transfer (3)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - transpose (11)
- trap (44)
- truncate (66)
- trust (9)
-
try
_ convert (58) -
try
_ lock (11) - type (6)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - unpack (11)
- unpack1 (8)
-
untrace
_ var (11) - untrust (9)
- untrusted? (9)
- upcase (11)
- upcase! (11)
- upto (11)
- urandom (7)
-
valid
_ encoding? (11) - values (22)
-
values
_ at (33) - write (44)
-
write
_ nonblock (11) - zone (11)
- | (11)
検索結果
先頭5件
-
String
# tr(pattern , replace) -> String (29351.0) -
pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。
...pattern 文字列に含まれる文字を検索し、
それを replace 文字列の対応する文字に置き換えます。
pattern の形式は tr(1) と同じです。つまり、
`a-c' は a から c を意味し、"^0-9" のように
文字列の先頭が `^' の場合は指定文字以外......が置換の対象になります。
replace に対しても `-' による範囲指定が可能です。
`-' は文字列の両端にない場合にだけ範囲指定の意味になります。
`^' も文字列の先頭にあるときにだけ否定の効果を発揮します。
また、`-', `^',......す。
replace の範囲が pattern の範囲よりも小さい場合は、
replace の最後の文字が無限に続くものとして扱われます。
@param pattern 置き換える文字のパターン
@param replace pattern で指定した文字を置き換える文字
//emlist[例][ru... -
RubyVM
:: AbstractSyntaxTree (26002.0) -
Ruby のコードをパースして得られる抽象構文木を扱うモジュールです。
...Ruby のコードをパースして得られる抽象構文木を扱うモジュールです。
抽象構文木はRubyVM::AbstractSyntaxTree::Nodeクラスのインスタンスとして表されます。
このモジュールはMRIの抽象構文木の実装の詳細を表します。
このモ......し安定したAPIやMRI以外の実装で抽象構文木を扱いたい場合、
parser gem (https://github.com/whitequark/parser)や
Ripperの使用を検討してください。
もし RubyVM::AbstractSyntaxTree のAPIを安定にしたい場合、14844 での議論に参加してください。... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (23402.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...iledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hell......o'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (23302.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
String
. try _ convert(obj) -> String | nil (23302.0) -
obj を String に変換しようと試みます。変換には Object#to_str メソッ ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ た場合は nil が返されます。
...bj を String に変換しようと試みます。変換には Object#to_str メソッ
ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ
た場合は nil が返されます。
@param obj 変換する任意のオブジェクト
@return......変換後の文字列または nil
//emlist[例][ruby]{
String.try_convert("str") # => "str"
String.try_convert(/re/) # => nil
//}... -
TracePoint
. trace(*events) {|obj| . . . } -> TracePoint (23302.0) -
新しい TracePoint オブジェクトを作成して自動的にトレースを開始し ます。TracePoint.new のコンビニエンスメソッドです。
...新しい TracePoint オブジェクトを作成して自動的にトレースを開始し
ます。TracePoint.new のコンビニエンスメソッドです。
@param events トレースするイベントを String か Symbol で任
意の数指定します。指定できる値に......ついては
TracePoint.new を参照してください。
//emlist[例][ruby]{
trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# => #<TracePoint:0x007f786a452448>
trace.enabled? # => true
//}
@raise ThreadError ブロックを指定しなかった場合に発生し... -
Enumerable
# each _ entry -> Enumerator (23202.0) -
ブロックを各要素に一度ずつ適用します。
...配列として渡されます。
//emlist[例][ruby]{
class Foo
include Enumerable
def each
yield 1
yield 1,2
end
end
Foo.new.each_entry{|o| print o, " -- "}
# => 1 -- [1, 2] --
//}
ブロックを省略した場合は Enumerator が返されます。
@see Enumerable#slice_before... -
Enumerable
# each _ entry {|obj| block} -> self (23202.0) -
ブロックを各要素に一度ずつ適用します。
...配列として渡されます。
//emlist[例][ruby]{
class Foo
include Enumerable
def each
yield 1
yield 1,2
end
end
Foo.new.each_entry{|o| print o, " -- "}
# => 1 -- [1, 2] --
//}
ブロックを省略した場合は Enumerator が返されます。
@see Enumerable#slice_before... -
Enumerable
# entries(*args) -> [object] (23202.0) -
全ての要素を含む配列を返します。
...返します。
@param args each の呼び出し時に引数として渡されます。
//emlist[例][ruby]{
(1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7]
{ 'a'=>1, 'b'=>2, 'c'=>3 }.to_a #=> [["a", 1], ["b", 2], ["c", 3]]
require 'prime'
Prime.entries 10 #=> [2, 3... -
Fiber
# transfer(*args) -> object (23202.0) -
自身が表すファイバーへコンテキストを切り替えます。
...すファイバーへコンテキストを切り替えます。
自身は Fiber#resume を呼んだファイバーの子となります。
Fiber#resume との違いは、ファイバーが終了したときや Fiber.yield が呼ばれたときは、
ファイバーの親へ戻らずにメインフ......イバーから呼び出した Fiber#resume メソッドの返り値として渡したいオブジェクトを指定します。
@return コンテキスト切り替えの際に、Fiber#resume メソッドに与えられた引数を返します。
@raise FiberError 自身が既に終了している......read クラスが表すスレッド間をまたがる場合、
Fiber#resume を呼んだファイバーがその親か先祖である場合に発生します。
//emlist[例:][ruby]{
require 'fiber'
fr1 = Fiber.new do |v|
:fugafuga
end
fr2 = Fiber.new do |v|
fr1.transfer
:fuga
e... -
Process
:: Sys . # setresgid(rid , eid , sid) -> nil (23202.0) -
システムコールの setresgid を呼びます。
...コールの setresgid を呼びます。
@param rid システムコールの引数を整数で指定します。
@param eid システムコールの引数を整数で指定します。
@param sid システムコールの引数を整数で指定します。
@raise NotImplementedError システ......ムコールが現在のプラットフォームで提供されていない場合に発生します。
@raise Errno::EXXX システムコールに失敗した場合に発生します。...