別のキーワード
ライブラリ
- ビルトイン (1030)
- bigdecimal (65)
- coverage (15)
- csv (84)
- erb (12)
- fiber (8)
- fiddle (12)
- json (24)
- logger (9)
- matrix (52)
-
net
/ http (24) - openssl (156)
- optparse (24)
- pathname (24)
- pp (36)
- prettyprint (12)
- psych (174)
- rake (84)
- rbconfig (24)
-
rdoc
/ parser / ruby (12) -
rexml
/ document (48) -
ripper
/ lexer (12) -
ripper
/ sexp (24) - rubygems (12)
-
rubygems
/ defaults (12) -
rubygems
/ requirement (12) -
rubygems
/ version (8) - socket (36)
- stringio (12)
-
syslog
/ logger (12) - tsort (93)
- uri (62)
-
webrick
/ ssl (12) - win32ole (36)
クラス
- Array (48)
- BigDecimal (65)
- CSV (72)
-
CSV
:: Table (12) - Class (24)
- Coverage (15)
- Data (6)
- Dir (114)
- ERB (12)
- Encoding (12)
- Enumerator (19)
-
Enumerator
:: Lazy (12) - Fiber (36)
-
Fiddle
:: Closure :: BlockCaller (12) - File (134)
-
Gem
:: Requirement (12) -
Gem
:: Version (8) - Hash (42)
- IO (72)
- Integer (4)
- Logger (9)
- Matrix (40)
- Module (24)
-
Net
:: HTTP (12) -
Net
:: HTTPResponse (12) - Object (24)
-
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (24) -
OpenSSL
:: ASN1 :: Enumerated (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: BN (36) - OptionParser (24)
- PP (36)
- Pathname (24)
- PrettyPrint (12)
-
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: Entity (12) -
REXML
:: XPath (36) -
Rake
:: InvocationChain (24) - Random (7)
- Regexp (48)
- Ripper (36)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (116) - SignalException (24)
- Socket (24)
- String (21)
- StringIO (12)
- Struct (28)
- Symbol (12)
-
Syslog
:: Logger (12) - SystemCallError (12)
- TCPSocket (12)
- Thread (60)
-
Thread
:: Queue (8) - TracePoint (24)
- Vector (12)
-
WEBrick
:: GenericServer (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (24)
モジュール
- GC (48)
- Gem (12)
-
Gem
:: QuickLoader (12) - JSON (24)
- Psych (150)
- Rake (24)
- RakeFileUtils (36)
- RbConfig (24)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (21) - TSort (93)
- URI (62)
オブジェクト
- ENV (19)
キーワード
- === (12)
- DEBUG (12)
- DEBUG= (12)
- [] (48)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
absolute
_ path (12) -
absolute
_ path? (6) -
all
_ symbols (12) - append (12)
- application (12)
- application= (12)
- basename (12)
- basis (12)
- binread (12)
- binwrite (12)
- birthtime (11)
-
body
_ permitted? (12) - build (24)
- bytes (7)
- chdir (24)
- clone (12)
- combine (16)
- compatible? (12)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - constants (12)
- correct? (8)
-
create
_ id (12) - current (12)
-
decode
_ www _ form _ component (12) - define (3)
- disable (12)
- disasm (12)
- disassemble (12)
-
double
_ fig (12) - dump (24)
-
dump
_ stream (12) - each (12)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - empty? (9)
- enable (12)
- enabled? (7)
- encode (7)
-
encode
_ www _ form _ component (12) - escape (7)
- exist? (12)
- exists? (18)
- first (12)
- fnmatch (12)
- fnmatch? (12)
-
for
_ fd (12) - format (12)
- gethostbyname (24)
- glob (48)
- instance (12)
- join (24)
-
keyword
_ init? (4) -
last
_ match (24) -
latest
_ gc _ info (12) - lex (12)
- limit (12)
-
line
_ stub (7) - load (15)
-
load
_ documents (8) -
load
_ file (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) -
load
_ full _ rubygems _ library (12) -
load
_ stream (24) - match (12)
- matches? (12)
- members (15)
- mode (24)
- new (501)
-
nowrite
_ flag (12) - of (22)
-
ole
_ classes (12) - open (96)
- parse (46)
-
parse
_ file (10) -
parse
_ stream (24) - pause (7)
- pp (12)
- read (12)
- readlines (12)
- realpath (12)
-
resolve
_ feature _ path (1) - resume (7)
-
ruby2
_ keywords _ hash? (6) -
ruby
_ engine (12) - running? (8)
-
safe
_ load (19) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) - start (12)
- stat (12)
- stop (12)
-
strongly
_ connected _ components (12) - table (12)
- tcp (12)
-
to
_ h (7) - trace (12)
-
try
_ convert (52) - tsort (12)
-
tsort
_ each (23) - typelibs (12)
- union (12)
-
used
_ modules (12) - ver (5)
-
verbose
_ flag (12) -
verbose
_ flag= (12) -
world
_ readable? (12) -
world
_ writable? (12) -
yaml
_ tag (12) - yield (12)
検索結果
先頭5件
-
RbConfig
. ruby -> String (24218.0) -
ruby コマンドのフルパスを返します。
...
ruby コマンドのフルパスを返します。... -
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... -
Gem
. ruby _ engine -> String (12218.0) -
Ruby処理系実装の種類を表す文字列を返します。
...
Ruby処理系実装の種類を表す文字列を返します。... -
Gem
:: QuickLoader . load _ full _ rubygems _ library (12201.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (9307.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... -
Symbol
. all _ symbols -> [Symbol] (9213.0) -
定義済みの全てのシンボルオブジェクトの配列を返します。
...定義済みの全てのシンボルオブジェクトの配列を返します。
p Symbol.all_symbols #=> [:RUBY_PLATFORM, :RUBY_VERSION, ...]
リテラルで表記したシンボルのうち、コンパイル時に値が決まるものはその時に生成されます。
それ以外の式......あります)
def number
'make_3'
end
p Symbol.all_symbols.select{|sym|sym.to_s.include? 'make'}
#=> [:make_1, :make_2]
re = #確実に生成されるように代入操作を行う
:make_1,
:'make_2',
:"#{number}",
'make_4'.intern
p Symbol.all_symbols.select{|sym|sym.to_... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (9207.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 . disassemble(body) -> String (9101.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合......# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 00......------------------------------------------
local table (size: 2, argc: 0 [opts: 0, rest: -1, post: 0, block: -1] s1)
[ 2] num
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 d... -
RubyVM
:: MJIT . enabled? -> bool (9101.0) -
JIT が有効かどうかを返します。
...JIT が有効かどうかを返します。
@see RubyVM::MJIT.pause, RubyVM::MJIT.resume... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (6223.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......れかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file...