5606件ヒット
[1-100件を表示]
(0.118秒)
別のキーワード
ライブラリ
- ビルトイン (3705)
- csv (156)
- date (4)
- digest (24)
- fiber (8)
-
fiddle
/ import (36) -
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (36)
-
json
/ add / exception (12) - matrix (24)
-
net
/ http (252) - openssl (12)
- optparse (288)
- pathname (24)
- pp (24)
- prime (72)
- rake (468)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (96) -
rexml
/ document (24) -
rexml
/ streamlistener (12) - ripper (12)
-
rubygems
/ specification (36) - set (18)
- strscan (84)
- thread (12)
- tsort (47)
- win32ole (36)
- zlib (24)
クラス
-
ARGF
. class (36) - Array (137)
- BasicObject (144)
- Binding (59)
- CSV (120)
-
CSV
:: FieldInfo (36) - Class (24)
- Data (3)
- Date (2)
- DateTime (2)
-
Digest
:: Base (24) - Dir (72)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Enumerator (36)
-
Enumerator
:: Yielder (30) - Exception (140)
- Fiber (42)
- File (36)
-
File
:: Stat (72) - FrozenError (6)
-
Gem
:: Specification (36) - Hash (12)
- IO (298)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Integer (35)
-
JSON
:: Parser (12) -
JSON
:: State (12) - MatchData (104)
- Matrix (24)
- Method (106)
- Module (724)
- Mutex (4)
-
Net
:: HTTP (156) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Numeric (105)
- Object (372)
- OptionParser (288)
- Pathname (24)
- Prime (24)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (24)
-
REXML
:: Attributes (24) -
Rake
:: Application (84) -
Rake
:: FileList (204) -
Rake
:: FileTask (24) -
Rake
:: InvocationChain (36) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (96) -
Rake
:: TaskArguments (12) - Random (24)
- Range (48)
- Refinement (4)
- Regexp (72)
- Ripper (12)
-
RubyVM
:: InstructionSequence (60) - Set (24)
- SignalException (24)
- String (194)
- StringScanner (84)
- Symbol (12)
- Thread (72)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (20) -
Thread
:: Queue (12) -
Thread
:: SizedQueue (36) - Time (2)
- TracePoint (189)
- UnboundMethod (36)
- UncaughtThrowError (11)
- WIN32OLE (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (24)
モジュール
- Comparable (6)
- Enumerable (168)
-
Fiddle
:: Importer (36) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (36) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (108) - TSort (47)
キーワード
- ! (12)
- != (12)
- % (12)
-
/ (11) - < (12)
- << (12)
- <= (12)
- <=> (12)
- == (48)
- === (36)
- =~ (12)
- > (12)
- >= (12)
- [] (108)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (24) - accept (12)
-
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ runtime _ dependency (12) -
alias
_ method (12) - append (12)
-
append
_ as _ bytes (1) - arity (24)
- ascend (12)
- at (12)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (12) - autoclose? (12)
- autoload (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)
-
callee
_ id (12) - cause (12)
- chardev? (12)
-
check
_ circular? (12) - clamp (6)
-
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) -
clear
_ exclude (12) - clone (24)
- close (12)
-
close
_ read (12) -
close
_ write (12) - coerce (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
- convert (24)
- crypt (12)
- curry (11)
-
deconstruct
_ keys (9) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) -
delete
_ suffix (8) -
delete
_ suffix! (8) - deq (12)
- descend (12)
- disable (24)
- display (12)
- div (12)
- divide (24)
- dup (12)
- each (72)
-
each
_ attribute (12) -
each
_ byte (48) -
each
_ codepoint (24) -
each
_ index (24) -
each
_ line (24) -
each
_ strongly _ connected _ component (12) -
each
_ strongly _ connected _ component _ from (23) -
each
_ with _ index (72) - egrep (12)
- enable (24)
-
end
_ seen? (12) -
end
_ with? (18) - entitydecl (12)
-
enum
_ for (24) -
error
_ bytes (12) -
error
_ char (12) - eval (12)
-
eval
_ script (7) - event (12)
- exception (24)
-
excluded
_ from _ list? (12) - execute (48)
- existing (12)
- existing! (12)
- ext (12)
- fcntl (12)
- fdatasync (12)
- feed (12)
- fetch (48)
-
field
_ size _ limit (12) - finish (12)
- first (24)
-
first
_ lineno (12) -
fixed
_ encoding? (12) - flush (12)
- get (24)
- get2 (24)
- gsub! (12)
- handler= (12)
- hash (12)
- header (12)
-
header
_ convert (24) - help (12)
- hexdigest (12)
- import (12)
-
import
_ methods (4) -
in
_ namespace (12) - include (12)
- include? (12)
- included (12)
-
included
_ modules (12) -
incomplete
_ input? (12) - index (12)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode= (12) - inspect (72)
-
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) - intern (12)
-
internal
_ encoding (12) - invert (12)
-
is
_ a? (24) -
kind
_ of? (24) - label (12)
-
last
_ comment (12) -
last
_ description (12) -
last
_ description= (12) - line (12)
- lineno (12)
- load (24)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) -
local
_ variables (11) - lookup (12)
- lstat (12)
- match (24)
- match? (12)
-
matched
_ size (12) - max (24)
-
max
_ by (48) - member? (12)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
module
_ eval (12) -
module
_ function (36) - name (36)
-
need
_ zip (12) -
need
_ zip= (12) - needed? (12)
- offset (24)
-
ole
_ query _ interface (12) -
on
_ head (12) -
on
_ tail (12) -
original
_ dir (12) -
original
_ name (24) - pack (21)
-
package
_ dir (12) -
package
_ dir= (12) -
package
_ dir _ path (12) -
package
_ files (12) -
package
_ files= (12) - parameters (7)
- parse (24)
- parse! (12)
- path (36)
- pathmap (12)
- peek (12)
- peep (12)
- pid (12)
- pointer= (12)
- pop (12)
- pos (12)
- pos= (36)
- post (24)
- post2 (24)
- pread (8)
- prepend (21)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
program
_ name (12) -
program
_ name= (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method _ defined? (12) -
public
_ send (24) - pwrite (8)
- raise (18)
-
raised
_ exception (12) - rakefile (12)
- rand (24)
- read (12)
-
read
_ body (12) - readbyte (24)
- readchar (12)
- readline (12)
- readlines (12)
- receiver (18)
- refine (12)
- reject (12)
- release (12)
-
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) -
request
_ get (24) -
request
_ post (24) - resolve (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - response (12)
- resume (12)
-
return
_ value (12) - rewind (12)
-
ruby2
_ keywords (12) - seek (12)
-
send
_ request (12) - separator (12)
-
set
_ backtrace (12) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setgid? (12)
- setuid? (12)
- shift (36)
- signal (12)
- signm (12)
- signo (12)
-
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (12)
- sleep (12)
- socket? (12)
-
sort
_ by (24) - source (12)
-
source
_ location (12) -
start
_ with? (18) - stat (12)
- step (93)
- sticky? (12)
- struct (12)
- sub! (12)
- sum (12)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) -
super
_ method (11) - superclass (12)
- sync (12)
- synchronize (12)
-
synthesize
_ file _ task (12) - syswrite (12)
- tell (12)
-
thread
_ variable _ set (12) -
to
_ a (24) -
to
_ ary (12) -
to
_ bn (12) -
to
_ enum (24) -
to
_ int (12) -
to
_ json (24) -
to
_ path (12) -
to
_ proc (6) -
to
_ s (119) -
to
_ str (12) -
top
_ level (12) -
top
_ level _ tasks (12) - transfer (12)
- truncate (12)
-
tsort
_ each (12) -
tty
_ output= (12) - unbind (12)
- union (12)
- unpack (12)
- unscan (12)
- unshift (8)
- upto (12)
- value (12)
- ver (12)
-
with
_ defaults (12) -
with
_ index (24) -
with
_ object (24) - write (12)
-
write
_ headers? (12) - yield (24)
- ~ (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # first _ lineno -> Integer (35107.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
# => 2... -
RubyVM
:: InstructionSequence # base _ label -> String (29113.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/me......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::InstructionSeq... -
RubyVM
:: InstructionSequence # label -> String (29113.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
..."<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"......M::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
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_label... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (29107.0) -
self が表す命令シーケンスの絶対パスを返します。
...していた場合は nil を返します。
例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 # path -> String (29107.0) -
self が表す命令シーケンスの相対パスを返します。
...いた
場合は "<compiled>" を返します。
例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... -
MatchData
# end(n) -> Integer | nil (18250.0) -
n 番目の部分文字列終端のオフセットを返します。
...nil を返します。
@param n 部分文字列を指定する数値。
@raise IndexError 範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.end(0) # => 6
p $~.end(1) # => 3
p $~.end(2) # => 6
p $~.end(3) # => nil
p $~.end......(4) # => `end': index 4 out of matches (IndexError)
//}
@see MatchData#begin... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (18225.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
...す。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.conve......rt("abc\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
TracePoint
# binding -> Binding (15425.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//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
# binding -> Binding | nil (15425.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
//}... -
Proc
# binding -> Binding (12419.0) -
Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。
...Proc オブジェクトが保持するコンテキストを
Binding オブジェクトで返します。
//emlist[例][ruby]{
def fred(param)
proc {}
end
sample_proc = fred(99)
eval("param", sample_proc.binding) # => 99
//}...