1603件ヒット
[1-100件を表示]
(0.126秒)
別のキーワード
ライブラリ
クラス
- Addrinfo (24)
- Array (88)
- BasicObject (60)
- CSV (36)
-
CSV
:: Row (18) - Class (12)
- Data (6)
- Date (2)
- DateTime (2)
- Dir (12)
- ERB (24)
-
Encoding
:: Converter (24) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (36)
-
Enumerator
:: Lazy (12) - File (12)
-
Gem
:: Requirement (12) - IO (12)
- Integer (24)
- Matrix (48)
- Method (12)
- Module (96)
-
Net
:: HTTP (108) - Object (146)
- OptionParser (36)
- Proc (7)
- Range (7)
- Regexp (48)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (72) - String (116)
- StringIO (12)
- StringScanner (60)
- Thread (36)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: ConditionVariable (24) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - ThreadGroup (12)
- Time (2)
- TracePoint (14)
- UnboundMethod (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12) - XMP (12)
モジュール
- Enumerable (72)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (12)
-
Rake
:: TaskManager (12)
キーワード
- ! (12)
- != (12)
- << (19)
- === (31)
- =~ (12)
- [] (12)
-
absolute
_ path (24) - add (12)
-
add
_ row (12) -
alias
_ method (12) -
base
_ label (24) -
bind
_ call (12) - broadcast (12)
- concat (12)
-
connect
_ from (24) - convert (12)
- cycle (48)
- deconstruct (6)
-
deconstruct
_ keys (12) -
default
_ event _ sources (12) - deq (24)
- disasm (12)
- disassemble (12)
- dump (8)
- each (60)
-
each
_ with _ index (24) -
enum
_ for (24) -
error
_ bytes (12) -
eval
_ script (7) - fetch (36)
- flock (12)
- get2 (24)
- gsub (48)
- handler= (12)
- helpfile (12)
-
in
_ namespace (12) - inherited (12)
- initialize (12)
-
initialize
_ copy (12) -
insert
_ output (12) - inspect (31)
-
instruction
_ sequence (7) - invkind (12)
- label (12)
- match (24)
-
max
_ by (48) -
method
_ added (12) -
method
_ removed (12) -
method
_ undefined (12) - next (12)
-
on
_ head (12) -
on
_ tail (12) - path (24)
- peek (12)
- peep (12)
- pid (12)
- pointer= (12)
- pop (24)
- pos= (12)
- post2 (24)
- prepend (12)
- prepended (12)
-
public
_ send (24) - read (12)
- refine (12)
-
request
_ get (24) -
request
_ post (24) -
respond
_ to? (12) - result (12)
- run (12)
-
send
_ request (12) - separator (12)
- shift (24)
- signal (12)
-
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
source
_ location (12) - src (12)
- sub (36)
- taint (6)
- tap (8)
- times (24)
-
to
_ csv (4) -
to
_ enum (24) -
to
_ json (12) -
to
_ s (24) -
undef
_ method (12) - unscan (12)
- upto (12)
- wakeup (12)
-
with
_ index (12) -
with
_ object (24) - xmp (12)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (26131.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: InstructionSequence # base _ label -> String (26119.0) -
self が表す命令シーケンスの基本ラベルを返します。
...た場合
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
puts "hello, 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::InstructionSequence#label... -
RubyVM
:: InstructionSequence # label -> String (26119.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
... RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::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 (26113.0) -
self が表す命令シーケンスの絶対パスを返します。
...= 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 = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # disasm -> String (26113.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1......( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # disassemble -> String (26113.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1......( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # path -> String (26113.0) -
self が表す命令シーケンスの相対パスを返します。
...= 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 = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
XMP
# puts(exps) -> nil (18252.0) -
引数 exps で指定されたRuby のソースコードとその実行結果を、標準出力に行 ごとに交互に表示します。
...引数 exps で指定されたRuby のソースコードとその実行結果を、標準出力に行
ごとに交互に表示します。
@param exps 評価するRuby のソースコードを文字列で指定します。... -
StringIO
# puts(*obj) -> nil (18248.0) -
obj と改行を順番に自身に出力します。引数がなければ改行のみを出力します。 詳しい仕様は Kernel.#puts を参照して下さい。
...は Kernel.#puts を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.puts("hoge", "bar...