別のキーワード
種類
ライブラリ
- ビルトイン (498)
- benchmark (48)
-
cgi
/ core (12) - csv (12)
- date (64)
- etc (12)
- fileutils (24)
- json (12)
-
json
/ add / date _ time (12) - mkmf (72)
-
net
/ ftp (48) -
net
/ http (26) -
net
/ protocol (12) - openssl (60)
- psych (38)
- resolv (12)
-
rexml
/ document (24) -
rubygems
/ dependency _ list (12) -
rubygems
/ exceptions (12) -
rubygems
/ package / tar _ reader / entry (12) - socket (24)
- sync (12)
-
webrick
/ httpauth / authenticator (12) - win32ole (12)
クラス
-
ARGF
. class (12) - Array (153)
-
Benchmark
:: Tms (24) -
CSV
:: Table (12) - Data (15)
- Date (2)
- DateTime (74)
-
Encoding
:: Converter (60) - Enumerator (24)
-
Enumerator
:: Lazy (12) -
Gem
:: DependencyList (12) -
Gem
:: Package :: TarReader :: Entry (12) - IO (24)
- MatchData (8)
- Module (12)
-
Net
:: FTP (48) - Numeric (12)
- Object (12)
-
OpenSSL
:: PKey :: EC :: Group (24) -
OpenSSL
:: PKey :: RSA (12) - Proc (30)
-
Psych
:: SyntaxError (12) -
REXML
:: DocType (24) -
Resolv
:: DNS :: Name (12) -
RubyVM
:: InstructionSequence (48) - Socket (12)
- String (18)
- Struct (22)
- Symbol (12)
- SystemCallError (12)
- Time (14)
モジュール
- Benchmark (24)
-
CGI
:: QueryExtension (12) - Etc (12)
- FileUtils (24)
- Kernel (72)
-
OpenSSL
:: SSL (24) - Psych (14)
-
RubyVM
:: AbstractSyntaxTree (10) -
Socket
:: Constants (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - === (12)
- Array (12)
- EndOfYAMLException (12)
- FORMAT (24)
- HTTPGatewayTimeOut (7)
- HTTPMovedTemporarily (12)
- HTTPRequestEntityTooLarge (7)
- InfoField (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
OP
_ MICROSOFT _ BIG _ SSLV3 _ BUFFER (12) -
OP
_ MICROSOFT _ SESS _ ID _ BUG (12) - ProtocRetryError (12)
- Ruby用語集 (12)
- Synchronizer (6)
-
Synchronizer
_ m (6) -
TCP
_ SYNCNT (24) -
WIN32OLE
_ TYPELIB (12) - [] (10)
-
attribute
_ of (12) -
attributes
_ of (12) -
base
_ label (12) - benchmark (12)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
-
check
_ signedness (24) -
check
_ sizeof (24) - civil (12)
- coerce (12)
- cofactor (12)
- combination (24)
- commercial (12)
-
convertible
_ int (24) -
copy
_ stream (12) - curry (24)
-
deconstruct
_ keys (17) -
end
_ with? (6) - eof? (12)
- fetch (36)
-
first
_ lineno (12) - format (12)
- iqmp (12)
- jd (12)
- label (12)
- new (42)
- offset (12)
- ordinal (12)
- pack (21)
- pack テンプレート文字列 (12)
- permutation (24)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) -
rb
_ ary _ entry (12) - readbyte (12)
-
remove
_ entry _ secure (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - retrbinary (24)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ security (12) -
safe
_ load (14) -
server
_ software (12) -
set
_ generator (12) -
spec
_ predecessors (12) -
start
_ with? (6) - storbinary (24)
- strftime (12)
-
subdomain
_ of? (12) - sysconf (12)
- sysseek (12)
- timeofday (12)
-
to
_ json (12) - unpack (12)
-
with
_ index (36) -
yaml
_ tag (12) - クラス/メソッドの定義 (12)
- パターンマッチ (12)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node - MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil]
-
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (21237.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...数 body で指定した Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::Instru......ctionSequence.of(p)
> # => <RubyVM::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 を使用した場合......}
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (21214.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...が発生した際にエラー箇所を 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 (LIT@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: ni......l
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (21214.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...が発生した際にエラー箇所を 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 (LIT@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: ni......l
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (21213.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...st[][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(method(......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)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil] (12200.0) -
n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...のオフセットの
配列 [start, end] を返します。
n番目の部分文字列がマッチしていなければ [nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#offset... -
MatchData
# byteoffset(name) -> [Integer , Integer] | [nil , nil] (12200.0) -
name という名前付きグループに対応する部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.byteoffset('year') # => [0, 4]
p $~.byteoffset(:year) # => [0, 4]
p $~.byteoffset('month') # => [7, 8]
p $~.byteoffset(:month) # => [7, 8]
p $~.byteoffset('day') # => [nil, nil]
p $~.byteoffse......t('century') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#offset... -
static double timeofday(void) (12200.0)
-
-
Gem
:: EndOfYAMLException (12000.0) -
YAML データが不正である場合に使用する例外です。
...YAML データが不正である場合に使用する例外です。... -
WEBrick
:: HTTPAuth :: ProxyAuthenticator :: InfoField -> "Proxy-Authentication-Info" (9200.0) -
キーの名前です。
キーの名前です。 -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (9125.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...[][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.at......tribute_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] (9119.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...[][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.at......tributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
CGI
:: QueryExtension # server _ software -> String (9100.0) -
ENV['SERVER_SOFTWARE'] を返します。
...ENV['SERVER_SOFTWARE'] を返します。...