ライブラリ
- English (77)
- ビルトイン (283)
- benchmark (44)
-
cgi
/ core (11) - date (2)
- fiddle (44)
- fileutils (11)
-
irb
/ input-method (11) - json (22)
-
json
/ add / date _ time (11) - matrix (33)
-
minitest
/ spec (2) -
minitest
/ unit (2) -
net
/ ftp (22) - openssl (11)
- pathname (22)
-
rexml
/ document (22) -
rubygems
/ package / tar _ reader / entry (11) - stringio (33)
- strscan (44)
- time (33)
- tracer (22)
-
webrick
/ httpauth / authenticator (11) - zlib (11)
クラス
-
ARGF
. class (11) - Array (19)
-
Benchmark
:: Tms (22) - Data (2)
- Date (1)
- DateTime (12)
-
Fiddle
:: Pointer (11) -
Gem
:: Package :: TarReader :: Entry (11) - IO (69)
-
IRB
:: StdioInputMethod (11) - Integer (22)
- MatchData (1)
- Matrix (33)
- Method (11)
-
Net
:: FTP (22) - Object (2)
- Pathname (22)
-
REXML
:: DocType (22) -
RubyVM
:: InstructionSequence (44) - String (26)
- StringIO (33)
- StringScanner (44)
- Struct (14)
- Time (45)
- Tracer (22)
-
Zlib
:: GzipReader (11)
モジュール
- Benchmark (22)
-
CGI
:: QueryExtension (11) - Fiddle (33)
- FileUtils (11)
-
GC
:: Profiler (11) - JSON (22)
- Kernel (110)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: ASN1 (11) -
RubyVM
:: AbstractSyntaxTree (8) -
WEBrick
:: HTTPAuth :: Authenticator (11)
キーワード
-
$ ARGV (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) - FORMAT (22)
-
NEWS for Ruby 3
. 0 . 0 (4) - ResponseInfoField (11)
-
SIZEOF
_ INTPTR _ T (11) -
SIZEOF
_ PTRDIFF _ T (11) -
SIZEOF
_ UINTPTR _ T (11) - [] (11)
-
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
attribute
_ of (11) -
attributes
_ of (11) - autoload? (11)
-
base
_ label (11) -
beginning
_ of _ line? (11) - benchmark (11)
- binread (11)
- binwrite (22)
- bol? (11)
- byteindex (2)
- byterindex (2)
- chr (22)
- cofactor (11)
-
cofactor
_ expansion (11) -
copy
_ stream (11) -
deconstruct
_ keys (11) - eof (11)
- eof? (22)
-
first
_ lineno (11) - format (11)
- generate (11)
- gets (11)
- httpdate (11)
- label (11)
-
laplace
_ expansion (11) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) - new (9)
- off (22)
- pack (19)
- pointer= (11)
- pos= (11)
- pread (7)
- pwrite (7)
-
rb
_ time _ timespec _ new (9) - read (11)
-
readable
_ atfer _ eof? (11) - readchar (11)
- readline (22)
-
remove
_ entry _ secure (11) - result (11)
- retrbinary (22)
- rfc2822 (11)
- rfc822 (11)
-
ruby 1
. 6 feature (11) - seek (11)
-
server
_ software (11) -
source
_ location (11) - strftime (11)
-
to
_ f (11) -
to
_ json (11) - traverse (11)
- unpack (11)
- unparse (11)
- write (22)
検索結果
先頭5件
- RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - CGI
:: QueryExtension # server _ software -> String - REXML
:: DocType # attribute _ of(element , attribute) -> String | nil
-
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (27774.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ます。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定する......type が :ERROR であるようなノードに置き換えてツリーを生成します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LI......T@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxTree.of(method(:hello))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_in... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (27574.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
.../emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LIT@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxTree.of(me......thod(:hello))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# bod......y:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}......ます。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定する......type が :ERROR であるようなノードに置き換えてツリーを生成します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LI......T@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxTree.of(method(:hello))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_in... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (24437.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
>......VM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello......"hello, world"
end
$a_global_proc = proc { str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($... -
CGI
:: QueryExtension # server _ software -> String (21500.0) -
ENV['SERVER_SOFTWARE'] を返します。
...
ENV['SERVER_SOFTWARE'] を返します。... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (18625.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...内の属性リスト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言......ram element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CD......ATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (18519.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現......//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p......doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
Fiddle
:: SIZEOF _ INTPTR _ T -> Integer (18400.0) -
Cでの sizeof(intptr_t) の値
...Cでの sizeof(intptr_t) の値... -
Fiddle
:: SIZEOF _ PTRDIFF _ T -> Integer (18400.0) -
Cでの sizeof(ptrdiff_t) の値
...Cでの sizeof(ptrdiff_t) の値... -
Fiddle
:: SIZEOF _ UINTPTR _ T -> Integer (18400.0) -
Cでの sizeof(uintptr_t) の値
...Cでの sizeof(uintptr_t) の値... -
Object
# must _ be _ instance _ of(klass) -> true (15507.0) -
自身が与えられたクラスのインスタンスである場合、検査にパスしたことになります。
...ンスである場合、検査にパスしたことになります。
@param klass 任意のクラスを指定します。
@raise MiniTest::Assertion 自身が与えられたクラスの直接のインスタンスでない場合に発生します。
@see MiniTest::Assertions#assert_instance_of... -
Net
:: FTP # retrbinary(cmd , blocksize , rest _ offset = nil) -> nil (15500.0) -
サーバーに cmd で指定されたコマンドを送り、バイナリデータを 取り寄せます。
...り、バイナリデータを
取り寄せます。
blocksize で指定されたバイト単位でデータを
読み込み、ブロックに渡します。
rest_offset が省略されなかった場合は、cmdを送る前に
REST コマンドを送り、指定したバイト数の位置から......与えます。
@param blocksize 読み込み単位をバイト単位で与えます。
@param rest_offset REST コマンドに与えるオフセットを与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz......@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#getbinaryfile... -
Net
:: FTP # retrbinary(cmd , blocksize , rest _ offset = nil) {|data| . . . } -> nil (15500.0) -
サーバーに cmd で指定されたコマンドを送り、バイナリデータを 取り寄せます。
...り、バイナリデータを
取り寄せます。
blocksize で指定されたバイト単位でデータを
読み込み、ブロックに渡します。
rest_offset が省略されなかった場合は、cmdを送る前に
REST コマンドを送り、指定したバイト数の位置から......与えます。
@param blocksize 読み込み単位をバイト単位で与えます。
@param rest_offset REST コマンドに与えるオフセットを与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz......@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#getbinaryfile...