別のキーワード
ライブラリ
- ビルトイン (3410)
- csv (63)
- digest (24)
- erb (24)
- fiber (8)
-
fiddle
/ import (12) -
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (36)
-
json
/ add / exception (12) -
net
/ http (72) - openssl (12)
- optparse (48)
- pp (24)
- prime (24)
- rake (180)
-
rake
/ packagetask (48) -
rexml
/ document (24) - ripper (12)
- strscan (48)
- thread (16)
- win32ole (36)
- zlib (24)
クラス
-
ARGF
. class (12) - Array (173)
- BasicObject (144)
- Binding (47)
- CSV (60)
-
CSV
:: Row (3) - Class (28)
- Data (3)
-
Digest
:: Base (24) - Dir (24)
- ERB (24)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) - Enumerator (96)
-
Enumerator
:: Lazy (24) -
Enumerator
:: Yielder (24) - Exception (68)
- Fiber (42)
-
File
:: Stat (72) - FrozenError (6)
- Hash (62)
- IO (86)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Integer (12)
-
JSON
:: Parser (12) -
JSON
:: State (12) - MatchData (20)
- Method (152)
- Module (676)
- Mutex (4)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Numeric (62)
- Object (480)
- OptionParser (48)
- Prime (24)
- Proc (44)
-
REXML
:: Attributes (24) -
Rake
:: FileList (108) -
Rake
:: FileTask (12) -
Rake
:: InvocationChain (24) -
Rake
:: PackageTask (48) -
Rake
:: TaskArguments (12) - Range (136)
- Regexp (48)
- Ripper (12)
-
RubyVM
:: InstructionSequence (60) - String (121)
- StringScanner (48)
- Symbol (12)
- Thread (72)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (20) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - TracePoint (122)
- UnboundMethod (36)
- UncaughtThrowError (22)
- WIN32OLE (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (24)
モジュール
- Comparable (12)
- Enumerable (244)
-
Fiddle
:: Importer (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
Rake
:: Cloneable (24)
キーワード
- ! (12)
- != (12)
- % (12)
- < (12)
- << (26)
- <= (12)
- == (60)
- === (63)
- > (12)
- >= (12)
- >> (14)
- [] (72)
- []= (36)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (24) -
add
_ trace _ func (12) -
alias
_ method (4) - allocate (12)
- append (20)
-
append
_ as _ bytes (1) - arity (24)
- at (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoclose? (12)
- backtrace (24)
-
backtrace
_ locations (12) -
base
_ label (24) - begin (24)
- bind (24)
- binding (24)
- binmode (12)
- blockdev? (12)
-
body
_ stream (12) -
body
_ stream= (12) - broadcast (12)
- byteend (2)
- byteoffset (6)
- call (24)
-
callee
_ id (12) - chardev? (12)
-
check
_ circular? (12) - chunk (12)
- clamp (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (24)
- close (12)
- compact (4)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- cover? (19)
- curry (22)
- deconstruct (6)
-
def
_ class (12) -
def
_ module (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - deq (24)
- disable (24)
- display (12)
- dup (24)
- each (84)
-
each
_ attribute (12) -
each
_ byte (48) -
each
_ entry (24) -
each
_ with _ index (24) - enable (24)
-
end
_ seen? (12) -
end
_ with? (18) -
enum
_ for (36) - eql? (12)
-
error
_ bytes (12) - eval (12)
- event (12)
-
exclude
_ end? (12) -
excluded
_ from _ list? (12) - execute (48)
- extend (12)
-
extend
_ object (12) - extended (12)
- feed (12)
- fetch (36)
-
field
_ size _ limit (12) - finish (12)
- first (24)
-
first
_ lineno (12) -
fixed
_ encoding? (12) -
force
_ quotes? (12) - get (12)
- gsub! (12)
- handler= (12)
- hexdigest (12)
- include? (12)
-
incomplete
_ input? (12) - inherited (12)
- initialize (12)
-
initialize
_ copy (12) - inspect (42)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instruction
_ sequence (7) - invert (12)
-
is
_ a? (24) -
kind
_ of? (24) - label (12)
- lambda? (12)
- last (24)
- lazy (12)
- load (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variables (11) -
marshal
_ dump (12) - match (24)
- match? (12)
-
matched
_ size (12) - max (48)
-
max
_ by (48) - member? (12)
- merge (24)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) -
module
_ function (12) - name (24)
-
need
_ tar (12) -
need
_ tar _ bz2 (12) -
need
_ tar _ gz (12) -
need
_ zip (12) - needed? (12)
- next (12)
-
ole
_ query _ interface (12) -
on
_ head (12) -
on
_ tail (12) -
original
_ name (24) - overlap? (2)
- owned? (12)
- pack (21)
- parameters (7)
- parse (12)
- path (12)
- peek (12)
- peep (12)
- pop (24)
- post (12)
- pread (8)
- prepend (20)
-
prepend
_ features (12) -
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (48)
-
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method _ defined? (12) -
public
_ send (24) - push (8)
- raise (18)
- read (12)
-
read
_ body (24) - readbyte (24)
- readlines (12)
- receiver (18)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
-
return
_ value (12) - rewind (12)
-
ruby2
_ keywords (18) - seek (12)
- send (24)
-
set
_ backtrace (12) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setgid? (12)
- setuid? (12)
- shift (24)
- signal (12)
-
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - socket? (12)
-
sort
_ by (24) -
start
_ with? (18) - step (62)
- sticky? (12)
- sub! (12)
- subclasses (4)
- sum (12)
- sync (12)
- synchronize (12)
- tag (11)
-
to
_ a (12) -
to
_ ary (24) -
to
_ bn (12) -
to
_ enum (36) -
to
_ h (14) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (24) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ s (66) -
to
_ str (12) - transfer (12)
- unbind (12)
-
undef
_ method (12) - unpack (12)
- unshift (8)
- upto (12)
- value (11)
-
with
_ object (24) -
write
_ headers? (12) - yield (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # base _ label -> String (32213.0) -
self が表す命令シーケンスの基本ラベルを返します。
...す。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello......ello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::Instruct......ionSequence#label... -
RubyVM
:: InstructionSequence # label -> String (32213.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...す。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
pu......"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_labe... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (32207.0) -
self が表す命令シーケンスの絶対パスを返します。
...ます。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello......puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (29113.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
...ンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
#... -
RubyVM
:: InstructionSequence # path -> String (29107.0) -
self が表す命令シーケンスの相対パスを返します。
...ます。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello......puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (18475.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...For the given method names, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword argument......s will be passed through the method to
other methods.
This should only be used for methods that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility......t in Ruby versions
before 2.7, check that the module responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
method will change so that it does not pass through keywords.
//emlist[例][ruby]{
module Mod
def foo(meth, *args, &block)
send(:"... -
Proc
# ruby2 _ keywords -> proc (18475.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...Marks the proc as passing keywords through a normal argument splat. This
should only be called on procs that accept an argument splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked......rds will
be passed through the proc to other methods.
This should only be used for procs that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility.......st in Ruby versions
before 2.7, check that the proc responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
proc will change so that it does not pass through keywords.
//emlist[][ruby]{
module Mod
foo = ->(meth, *args, &block) do
send(:"do... -
Range
# end -> object (18317.0) -
終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま せん。
...終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま
せん。
//emlist[例][ruby]{
(10..20).last # => 20
(10...20).last # => 20
//}
@see Range#begin... -
Module
# extend _ object(obj) -> object (12537.0) -
Object#extend の実体です。オブジェクトにモジュールの機能を追加します。
...Object#extend の実体です。オブジェクトにモジュールの機能を追加します。
Object#extend は、Ruby で書くと以下のように定義できます。
//emlist[例][ruby]{
def extend(*modules)
modules.reverse_each do |mod|
# extend_object や extended はプライ......ので
# 直接 mod.extend_object(self) などとは書けない
mod.__send__(:extend_object, self)
mod.__send__(:extended, self)
end
end
//}
extend_object のデフォルトの実装では、self に定義されて
いるインスタンスメソッドを obj の特異メソッドと......して追加します。
@param obj self の機能を追加するオブジェクトを指定します。
@return obj で指定されたオブジェクトを返します。
@see Module#extended...