ライブラリ
- ビルトイン (2458)
- bigdecimal (55)
- coverage (47)
- csv (216)
- date (36)
- erb (12)
- fiber (8)
- fiddle (36)
-
fiddle
/ import (12) - fileutils (48)
- json (84)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (12)
- matrix (204)
-
net
/ http (72) - openssl (408)
- optparse (48)
- pathname (24)
- pp (24)
- prettyprint (12)
- prime (12)
- psych (122)
- pty (12)
- rake (144)
-
rake
/ packagetask (12) - rbconfig (24)
-
rdoc
/ parser / ruby (12) - resolv (36)
-
rexml
/ document (156) - ripper (24)
-
ripper
/ filter (12) -
ripper
/ lexer (48) -
ripper
/ sexp (24) - rubygems (12)
-
rubygems
/ defaults (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (48) -
rubygems
/ source _ index (24) -
rubygems
/ specification (24) -
rubygems
/ version (36) - securerandom (8)
- set (9)
- socket (96)
- stringio (36)
- strscan (12)
-
syslog
/ logger (12) -
test
/ unit (1) - tsort (93)
- uri (158)
-
webrick
/ ssl (12) - win32ole (48)
クラス
- Addrinfo (12)
- Array (60)
- BigDecimal (55)
- CSV (192)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (24)
- Complex (36)
- Coverage (47)
- Data (21)
- Date (48)
- DateTime (12)
- Dir (414)
- ERB (12)
- Encoding (60)
-
Encoding
:: Converter (72) - Enumerator (25)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (12) - Exception (36)
- Fiber (36)
-
Fiddle
:: CStruct (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Pointer (24) - File (347)
- FrozenError (14)
-
Gem
:: Installer (24) -
Gem
:: Requirement (48) -
Gem
:: SourceIndex (24) -
Gem
:: Specification (24) -
Gem
:: Version (36) - Hash (30)
- IO (192)
- IPSocket (12)
- Integer (24)
-
JSON
:: Parser (12) -
JSON
:: State (12) - KeyError (28)
- Logger (12)
- Matrix (160)
-
Net
:: HTTP (60) -
Net
:: HTTPResponse (12) -
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Enumerated (24) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) -
OpenSSL
:: BN (24) - OptionParser (48)
- PP (24)
- Pathname (24)
- PrettyPrint (12)
- Proc (19)
-
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: CData (12) -
REXML
:: Document (48) -
REXML
:: Entity (12) -
REXML
:: Text (24) -
REXML
:: XPath (36) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (24) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (12) -
Rake
:: TaskArguments (12) - Random (77)
- Range (24)
- Regexp (108)
- Resolv (24)
-
Resolv
:: DNS (12) - Ripper (96)
-
Ripper
:: Filter (12) - RubyVM (1)
-
RubyVM
:: InstructionSequence (116) - Set (12)
- SignalException (24)
- Socket (60)
- String (43)
- StringIO (36)
- StringScanner (12)
- Struct (76)
-
Syslog
:: Logger (12) - SystemCallError (12)
- TCPSocket (12)
- Thread (60)
-
Thread
:: Queue (8) - ThreadGroup (12)
- Time (124)
- TracePoint (24)
-
URI
:: FTP (12) - Vector (44)
-
WEBrick
:: GenericServer (12) - WIN32OLE (12)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIANT (24)
モジュール
- FileUtils (48)
- GC (72)
-
GC
:: Profiler (48) - Gem (12)
-
Gem
:: QuickLoader (12) - JSON (48)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - PTY (12)
- Process (8)
- Psych (110)
-
REXML
:: Security (24) - Rake (36)
- RakeFileUtils (48)
- RbConfig (24)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (21) - SecureRandom (8)
- TSort (93)
-
Test
:: Unit (1) - URI (146)
- Warning (10)
オブジェクト
- ENV (180)
キーワード
- === (12)
- DEBUG (12)
- DEBUG= (12)
- Proxy (12)
- [] (126)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
absolute
_ path (12) - accept (12)
- alphanumeric (8)
- append (12)
- application (12)
- application= (12)
- array (12)
-
asciicompat
_ encoding (24) - basename (12)
- basis (12)
- binread (12)
- binwrite (12)
- birthtime (11)
-
body
_ permitted? (12) - build (24)
- bytes (7)
- categories (1)
- chdir (48)
- check (12)
- children (16)
- chown (12)
- chroot (12)
- civil (12)
- clear (12)
- clone (12)
- codepage (12)
-
collect
_ method (12) - columns (12)
- combine (16)
- commands (12)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) -
copy
_ stream (24) - correct? (12)
- count (12)
- create (24)
-
create
_ id (12) -
create
_ id= (12) - current (12)
-
decode
_ www _ form _ component (12) - default (12)
-
default
_ external (12) -
default
_ external= (12) -
default
_ internal= (12) - define (6)
- delete (48)
-
delete
_ if (12) - diagonal (12)
- dirname (12)
- disasm (12)
- disassemble (12)
-
double
_ fig (12) - dump (12)
-
dump
_ stream (12) - each (24)
-
each
_ child (32) -
each
_ key (12) -
each
_ pair (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - elements (12)
- empty (12)
- empty? (9)
- enabled? (7)
- encode (7)
-
encode
_ www _ form _ component (12) -
entity
_ expansion _ limit (12) -
entity
_ expansion _ limit= (12) -
entity
_ expansion _ text _ limit (24) -
entity
_ expansion _ text _ limit= (24) - entries (24)
- escape (19)
- exception (12)
-
exec
_ format (12) - exist? (12)
- exists? (9)
- extname (12)
- extract (48)
- filter (36)
- first (12)
- fnmatch (12)
- fnmatch? (12)
-
for
_ fd (12) - foreach (96)
- format (12)
-
from
_ gems _ in (12) -
from
_ prime _ division (12) -
from
_ state (12) -
from
_ yaml (12) - ftype (12)
- generate (12)
-
generate
_ line (12) -
get
_ print (24) - getaddress (24)
- getaddrinfo (12)
- gethostbyname (24)
- gethostname (12)
- getname (12)
- getwd (12)
- glob (48)
- gm (24)
- home (24)
- hstack (12)
- join (24)
-
json
_ create (96) -
keyword
_ init? (4) -
last
_ match (24) -
last
_ status (8) -
latest
_ gc _ info (12) - lchmod (12)
- lchown (12)
- lex (12)
- limit (12)
-
line
_ stub (7) - list (12)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) -
load
_ full _ rubygems _ library (12) -
load
_ specification (12) -
load
_ stream (24) - local (24)
-
locale
_ charmap (12) - match (12)
- matches? (12)
- members (15)
- mkdir (12)
- mktime (24)
- mode (24)
-
name
_ list (12) - new (1242)
-
new
_ seed (12) -
nowrite
_ flag (12) -
nowrite
_ flag= (12) - of (22)
- open (144)
-
original
_ dir (12) - parse (82)
-
parse
_ file (10) -
parse
_ line (12) -
parse
_ stream (24) - parser (12)
- path (12)
- pause (7)
-
peek
_ result (12) - polar (12)
- produce (6)
- pwd (12)
- quote (12)
- rand (36)
-
raw
_ data (12) -
raw
_ seed (2) - read (12)
- readlines (48)
- readlink (12)
- realpath (12)
- rect (12)
- rectangular (12)
- regexp (24)
- reject (36)
- reject! (24)
- rename (12)
- report (12)
-
resolve
_ feature _ path (1) - result (24)
- resume (7)
- rmdir (12)
- rows (12)
-
ruby2
_ keywords _ hash? (6) -
ruby
_ engine (12) - running? (8)
-
safe
_ load (14) - scalar (12)
-
search
_ convpath (12) -
setup
_ argv (1) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) - size (12)
- slice (12)
- split (24)
- sqrt (8)
- start (44)
- stat (24)
- state (12)
- stop (12)
- store (12)
- stress= (12)
-
strongly
_ connected _ components (12) - sysopen (12)
- table (12)
- tcp (24)
-
to
_ json (12) -
to
_ ptr (12) - today (12)
-
token
_ match (12) - tokenize (12)
-
total
_ time (12) - trace (12)
- truncate (12)
-
try
_ convert (52) - tsort (12)
-
tsort
_ each (23) - typelibs (12)
- umask (24)
- union (12)
- unlink (24)
- unnormalize (12)
- urandom (8)
- utc (24)
- utime (12)
- ver (5)
-
verbose
_ flag (12) -
verbose
_ flag= (12) - vstack (12)
- warn (9)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
- yield (12)
- zero (32)
検索結果
先頭5件
-
RbConfig
. ruby -> String (24218.0) -
ruby コマンドのフルパスを返します。
...
ruby コマンドのフルパスを返します。... -
Gem
:: Requirement . create(input) -> Gem :: Requirement (12307.0) -
Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。
...Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。
@param input 文字列か配列か Gem::Requirement, Gem::Version のインスタンス
のいずれかを指定します。
@return 上記以外の値を input に指定するとデフ......ォルト値を返します。
//emlist[][ruby]{
pp Gem::Requirement.create("~> 3.2.1")
# => Gem::Requirement.new(["~> 3.2.1"])
//}
@see Gem::Requirement.new, Gem::Requirement.default... -
Hash
. ruby2 _ keywords _ hash?(hash) -> bool (12292.0) -
Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。
...Module#ruby2_keywordsやProc#ruby2_keywordsによる
ruby2_keywords フラグが設定されているかどうかを返します。
このメソッドはデバッグや調査、シリアライゼーションのために本当に必要な場合のために
用意されていて、普通のプログ......れていません。
ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。
//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}
@see Module#ruby2_keywords, Proc#ruby2_keywords... -
RubyVM
. resolve _ feature _ path (12235.0) -
require を呼んだときに読み込まれるファイルを特定します。 このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
...require を呼んだときに読み込まれるファイルを特定します。
このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
//emlist[][ruby]{
p RubyVM.resolve_feature_path('set')
# => [:rb, "/build-all-ruby/2.6.0/lib/ruby/2.6.0/set.rb"]
//}... -
Gem
. ruby _ engine -> String (12218.0) -
Ruby処理系実装の種類を表す文字列を返します。
...
Ruby処理系実装の種類を表す文字列を返します。... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (12207.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
Gem
:: QuickLoader . load _ full _ rubygems _ library (12201.0) -
prelude.c で定義されている内部用のメソッドです。
...prelude.c で定義されている内部用のメソッドです。... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (12107.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (9317.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file ファ......@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world......!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (9301.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...指定した Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequenc......# => <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 を使用した場合
# /tmp/iseq_of.rb
de......rld"
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($a_global_pr... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (9223.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...urce で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@par......指定します。
@param line 引数 source の 1 行目の行番号を指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_o......ption= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file...