別のキーワード
種類
ライブラリ
- English (72)
- ビルトイン (7939)
- abbrev (24)
- benchmark (36)
- bigdecimal (48)
-
bigdecimal
/ math (72) -
bigdecimal
/ util (36) - cmath (84)
- csv (144)
- date (114)
- etc (12)
- fiddle (12)
-
fiddle
/ import (36) - fileutils (43)
- forwardable (60)
- json (504)
-
json
/ add / date (24) -
json
/ add / date _ time (24) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (105)
- matrix (1007)
- mkmf (36)
-
net
/ http (264) - objspace (48)
- open-uri (12)
- open3 (48)
- openssl (92)
- optparse (72)
- pathname (627)
- prettyprint (12)
- prime (132)
- psych (27)
- pty (12)
- rake (276)
-
rake
/ packagetask (12) -
rdoc
/ parser / ruby (12) -
rexml
/ document (504) -
ripper
/ lexer (48) - rubygems (24)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ custom _ require (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (36) -
rubygems
/ platform (12) -
rubygems
/ requirement (36) -
rubygems
/ source _ index (12) -
rubygems
/ specification (156) -
rubygems
/ version (12) - set (18)
- socket (12)
- stringio (74)
- strscan (96)
- tempfile (36)
- tsort (66)
- uri (24)
- win32ole (36)
クラス
-
ARGF
. class (36) - Addrinfo (12)
- Array (577)
-
Benchmark
:: Tms (12) - BigDecimal (24)
- Binding (7)
- CSV (120)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (24)
- Complex (120)
- Data (54)
- Date (123)
- DateTime (27)
- Dir (376)
- Encoding (36)
-
Encoding
:: Converter (144) - Enumerator (212)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (398) -
Enumerator
:: Yielder (30) - Exception (24)
- File (303)
-
File
:: Stat (516) - Float (550)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (36) -
Gem
:: Platform (12) -
Gem
:: Requirement (36) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (156) -
Gem
:: Version (12) - Hash (267)
- IO (306)
- Integer (144)
-
JSON
:: State (240) - Logger (93)
-
Logger
:: Formatter (12) - MatchData (292)
- Matrix (873)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (264)
-
Net
:: HTTP (228) -
Net
:: HTTPGenericRequest (12) - NilClass (48)
- Numeric (176)
- Object (135)
-
OpenSSL
:: ASN1 :: ASN1Data (24) -
OpenSSL
:: ASN1 :: Enumerated (24) -
OpenSSL
:: BN (8) - OptionParser (72)
- Pathname (615)
- PrettyPrint (12)
- Prime (36)
-
Prime
:: EratosthenesGenerator (36) -
Prime
:: PseudoPrimeGenerator (48) - Proc (18)
-
RDoc
:: Parser :: Ruby (12) -
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (36) -
REXML
:: DocType (24) -
REXML
:: Element (120) -
REXML
:: Elements (36) -
REXML
:: Entity (12) -
REXML
:: XPath (36) -
Rake
:: Application (108) -
Rake
:: FileList (48) -
Rake
:: FileTask (12) -
Rake
:: InvocationChain (60) -
Rake
:: PackageTask (12) - Random (72)
- Range (89)
- Rational (333)
- Regexp (81)
- Ripper (32)
-
Ripper
:: Lexer (16) - RubyVM (1)
-
RubyVM
:: InstructionSequence (68) - Set (24)
- String (413)
- StringIO (74)
- StringScanner (96)
- Struct (67)
- Symbol (9)
- Tempfile (36)
- Thread (57)
-
Thread
:: Backtrace :: Location (84) - Time (137)
- TracePoint (12)
-
URI
:: FTP (12) - UnboundMethod (12)
- Vector (122)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Abbrev (12)
- Benchmark (24)
- BigMath (96)
- CMath (78)
- Enumerable (544)
- Fiddle (12)
-
Fiddle
:: Importer (36) - FileUtils (55)
- Forwardable (48)
- GC (72)
-
GC
:: Profiler (24) - Gem (24)
- JSON (120)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (509)
- Math (276)
-
Net
:: HTTPHeader (24) - ObjectSpace (84)
- Open3 (48)
-
OpenSSL
:: ASN1 (36) -
OpenURI
:: Meta (12) - PTY (12)
- Process (32)
- Psych (27)
- Rake (24)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10) - TSort (66)
- URI (12)
-
WIN32OLE
:: VARIANT (24) - Warning (6)
オブジェクト
- ENV (72)
キーワード
-
$ CHILD _ STATUS (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LOAD _ PATH (12) -
$ NR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ ~ (12) - % (26)
- * (36)
- ** (24)
- + (43)
- - (36)
- -@ (21)
-
/ (35) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- << (24)
- <= (12)
- <=> (60)
- == (51)
- === (18)
- > (12)
- >= (12)
- >> (12)
-
BUILD
_ RUBY _ PLATFORM (12) - CMath (6)
- CompatibilityError (12)
- Cygwin (12)
- DATA (12)
- DOSISH 対応 (12)
- Data (9)
-
Data
_ Get _ Struct (12) -
Data
_ Make _ Struct (12) -
Data
_ Wrap _ Struct (12) - Date (12)
- Default (12)
- E (24)
- Enumerated (24)
- Enumerator (12)
- FORMAT (24)
- Float (24)
- Forwardable (12)
- GNU (12)
- Lazy (12)
- Location (12)
- Mac OS X (12)
- Marshal フォーマット (12)
- Math (12)
- MinGW (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 1 . 0 (4) - NotationDecl (12)
-
OPERATING
_ SYSTEM _ DEFAULTS (12) - PI (24)
-
PLATFORM
_ DEFAULTS (12) - Pathname (12)
- Pretty (12)
- ROUNDS (7)
- RUBY (12)
-
RUBY
_ DATA _ FUNC (12) -
RUBY
_ PATCHLEVEL (12) -
RUBY
_ PLATFORM (12) -
RUBY
_ RELEASE _ DATE (12) - Rational (24)
- Ruby が動作するプラットフォーム (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Stat (12)
- State (12)
- Transitive (12)
- Unix (12)
-
VT
_ DATE (12) -
VT
_ DISPATCH (12) -
WIN
_ PATTERNS (12) - Win32 (12)
- Win32ネイティブ版 (12)
- Win32ネイティブ版Rubyの互換性問題 (12)
- [] (150)
- []= (19)
- abbrev (24)
-
abort
_ on _ exception= (24) - abs (21)
- absolute? (12)
-
absolute
_ path (36) -
absolute
_ path? (6) - accept (24)
- acos (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ element (12) -
add
_ heap (12) -
add
_ loader (12) -
add
_ runtime _ dependency (12) - adjugate (12)
- all? (15)
- allocate (12)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) -
allow
_ nan? (12) - angle (36)
-
angle
_ with (12) - antisymmetric? (7)
- any? (16)
- append (24)
-
append
_ features (12) - application (12)
- application= (12)
- arg (36)
-
array
_ nl (12) -
array
_ nl= (12) - ascend (24)
-
ascii
_ compatible? (12) -
asciicompat
_ encoding (24) - asin (12)
-
at
_ exit (12) - atan (24)
- atan2 (12)
- atime (48)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - autoload (24)
-
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (12)
-
bigdecimal
/ math (12) - bind (12)
- binread (24)
- binwrite (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- bsearch (24)
-
bsearch
_ index (10) - build (24)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- caller (36)
-
caller
_ locations (24) - capture2 (12)
- capture2e (12)
- capture3 (12)
- captures (12)
- catch (24)
- categories (1)
- cbrt (18)
- cbrt! (6)
- ceil (28)
- chain (7)
- chardev? (12)
- chdir (36)
- check (12)
-
check
_ circular? (12) - children (28)
- chown (12)
- chroot (12)
- chunk (36)
-
chunk
_ while (12) - civil (12)
- cleanpath (12)
- coerce (24)
-
cofactor
_ expansion (12) - collect (72)
- collect! (33)
- collect2 (12)
-
collect
_ concat (36) - column (24)
-
column
_ vectors (12) - columns (12)
- combination (24)
- combine (16)
- compatible? (12)
- compile (24)
- component (12)
- concat (66)
- configure (12)
- conj (12)
- conjugate (36)
-
const
_ source _ location (12) - continuation (12)
- convpath (12)
- cos (24)
- cos! (6)
-
count
_ tdata _ objects (12) - covector (12)
-
cp
_ lr (7) - create (48)
-
create
_ id (12) -
create
_ id= (12) -
create
_ makefile (12) -
create
_ rule (12) - ctime (24)
- cycle (24)
-
datetime
_ format (12) -
datetime
_ format= (24) - decode (12)
- deconstruct (6)
-
deconstruct
_ keys (12) -
def
_ delegator (12) -
def
_ instance _ delegator (12) - define (6)
- delegate (12)
- delete (36)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (36) - denominator (48)
-
deprecate
_ constant (12) - descend (24)
-
destination
_ encoding (12) - det (12)
- detect (12)
- determinant (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - diagonal (12)
- directory? (12)
- dirname (12)
- divmod (12)
-
do
_ rubygems _ update (12) - downto (12)
- drop (12)
-
drop
_ while (36) -
e
_ option _ supplied (12) - each (252)
-
each
_ attribute (12) -
each
_ byte (36) -
each
_ char (24) -
each
_ child (63) -
each
_ codepoint (36) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ filename (12) -
each
_ grapheme _ cluster (8) -
each
_ index (12) -
each
_ key (24) -
each
_ line (84) -
each
_ object (24) -
each
_ pair (36) -
each
_ slice (12) -
each
_ strongly _ connected _ component (22) -
each
_ strongly _ connected _ component _ from (22) -
each
_ value (12) -
each
_ with _ index (60) -
each
_ with _ object (12) - eager (6)
- egrep (12)
-
egrep
_ cpp (24) - eigen (12)
- eigensystem (12)
- element (12)
- empty (12)
- empty? (18)
- end (12)
- entries (36)
-
entrywise
_ product (8) -
enum
_ for (48) - eql? (39)
- erf (12)
- erfc (12)
-
exec
_ format (12) - executable? (12)
-
executable
_ real? (12) - exists? (9)
- exit (12)
- exit! (12)
- exp (30)
- exp! (6)
-
family
_ addrinfo (12) -
fast
_ generate (12) -
fast
_ unparse (12) - fatal (36)
- fatal? (12)
- fdatasync (12)
- fdiv (24)
- feed (12)
-
fetch
_ values (22) -
fiddle
/ import (12) - field? (12)
- file? (12)
- filter (35)
- filter! (14)
-
filter
_ map (12) - find (12)
-
find
_ all (24) -
find
_ class _ path (12) -
find
_ index (60) - finite? (12)
- first (12)
-
flat
_ map (36) - flatten (36)
- flatten! (24)
- flock (12)
- floor (29)
- fnmatch (24)
- fnmatch? (12)
- force (12)
- foreach (96)
- fork (24)
-
form
_ data= (12) - format (24)
-
formatted
_ program _ filename (12) - formatter (12)
- formatter= (12)
- frexp (12)
-
from
_ state (12) -
from
_ yaml (12) - ftype (12)
- gamma (12)
-
garbage
_ collect (24) - generate (24)
-
generate
_ line (12) - get (24)
- get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ print (12) -
get
_ text (12) - getwd (12)
- gid (12)
- glob (64)
- grep (36)
-
grep
_ v (34) -
group
_ by (12) - grpowned? (12)
- gsub (84)
- gsub! (60)
-
hadamard
_ product (8) - hash (15)
- head (12)
- head2 (24)
- hstack (24)
- hypot (12)
- id2ref (12)
- imag (12)
- imaginary (12)
- indent (12)
- indent= (12)
- index (67)
- infinite? (12)
- init (12)
- ino (12)
- inspect (63)
- install (12)
- instance (24)
-
instance
_ delegate (12) - inv (12)
- inverse (12)
- isatty (12)
- iterator? (12)
- join (24)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) -
json
_ creatable? (12) -
json
_ create (96) -
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) -
last
_ match (24) -
last
_ status (8) -
latest
_ gc _ info (24) - lazy (24)
- ldexp (12)
- length (24)
- lex (16)
-
lex
_ getline (12) - lgamma (12)
-
lib
_ dirs _ for (12) - lineno (12)
- lines (7)
- list (12)
- load (15)
-
load
_ from _ binary _ extra _ data (10) -
load
_ specification (12) - log (48)
- log! (12)
- log10 (12)
- log2 (12)
- loop (12)
- lstat (24)
- lup (12)
-
lup
_ decomposition (12) - magnitude (33)
- map (72)
- map! (33)
- match (60)
- match? (39)
- matched (12)
- matched? (12)
-
matched
_ size (12) - matches? (12)
- mathn (4)
- matrix (12)
-
max
_ by (24) -
max
_ nesting (12) -
max
_ nesting= (12) - member? (12)
- members (6)
- merge (12)
-
min
_ by (24) -
minmax
_ by (12) - minor (24)
- mkdir (12)
- mkpath (12)
- mode (12)
- modulo (12)
- mountpoint? (12)
- mswin32 (12)
- mtime (12)
- name (12)
-
named
_ captures (12) - names (12)
- namespace (12)
- namespaces (12)
- nan? (12)
- negative? (37)
- new (269)
- next (24)
-
next
_ float (11) -
next
_ values (12) -
next
_ year (12) - nlink (12)
- none? (15)
- norm (12)
- numerator (48)
-
object
_ nl (12) -
object
_ nl= (12) - offset (24)
- on (36)
- one? (15)
- open (72)
- openssl (12)
-
optparse
/ date (12) -
original
_ dir (12) - owned? (12)
- pack (21)
- pack テンプレート文字列 (12)
-
package
_ dir _ path (12) - parent (12)
- parse (20)
- parse! (12)
-
parse
_ file (10) - partition (12)
- path (123)
- pathconf (12)
- pathmap (12)
- peek (12)
-
peek
_ values (12) - permutation (24)
- phase (36)
- pipe? (12)
- pipeline (12)
- platform= (12)
- positive? (19)
- post (24)
- post2 (24)
-
post
_ match (24) -
pre
_ match (24) - prefix (12)
- prefixes (12)
-
prepend
_ features (12) -
pretty
_ generate (12) -
pretty
_ unparse (12) -
prev
_ float (11) -
prev
_ year (12) -
prime
_ division (24) -
primitive
_ convert (48) - printf (36)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - produce (6)
- pwd (12)
- quo (24)
- r (12)
- rakefile (12)
- rand (96)
- rank (12)
- rationalize (108)
-
raw
_ data (12) -
rb
_ ary _ entry (12) -
rb
_ data _ object _ alloc (12) -
rb
_ eval _ string _ protect (12) -
rb
_ f _ block _ given _ p (12) -
rb
_ io _ mode _ flags2 (12) -
rb
_ protect (12) - rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - rdoc (12)
-
rdoc
/ markdown (12) - read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (48)
- readlink (12)
- real (12)
- real? (12)
- realdirpath (12)
- realpath (36)
- realtime (12)
- rect (12)
- rectangular (12)
- regexp (12)
- regular? (12)
- reject (60)
- reject! (36)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ const (12) -
remove
_ entry (12) - reopen (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replicate (12)
-
report
_ on _ exception= (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (24)
-
require
_ relative (12) -
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) -
resolve
_ feature _ path (1) -
respond
_ to _ missing? (12) -
reverse
_ each (26) - rewind (24)
- rindex (24)
- rmdir (12)
- root? (12)
- rotate (12)
- rotate! (12)
- round (37)
- row (24)
-
row
_ vectors (12) - rows (12)
- ruby (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 1 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) -
ruby2
_ keywords (18) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ format (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ old _ format (12) -
rubygems
/ platform (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ security (12) -
rubygems
/ specification (12) -
rubygems
/ validator (12) -
rubygems
_ version (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) - saturday? (12)
- scalar (12)
- scan (24)
-
search
_ convpath (12) - select (60)
- select! (24)
-
send
_ request (12) - separator (12)
-
set
_ form _ data (12) - setgid? (12)
- setuid? (12)
- sin (24)
- sin! (6)
- size (60)
- size? (12)
-
skew
_ symmetric? (7) - slice (12)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- solve (12)
-
sort
_ by (12) -
sort
_ by! (12) -
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - split (24)
- sprintf (12)
- sprintf フォーマット (12)
- sqrt (30)
- sqrt! (6)
- start (12)
- stat (48)
- state (12)
- status (12)
- step (100)
- sticky? (12)
- strftime (12)
- string (12)
- struct (12)
- sub (84)
- sub! (48)
-
sub
_ ext (12) - subsec (12)
- succ (12)
- symlink? (12)
- sysopen (12)
- table (12)
- take (12)
-
take
_ while (48) - tan (12)
- tan! (6)
- terminate (12)
-
test
/ unit (1) - text (12)
- then (7)
- times (12)
-
to
_ a (48) -
to
_ binary (10) -
to
_ d (36) -
to
_ enum (48) -
to
_ f (84) -
to
_ h (18) -
to
_ hash (12) -
to
_ i (24) -
to
_ json (144) -
to
_ path (27) -
to
_ proc (6) -
to
_ r (84) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (99) -
to
_ string (12) - today (12)
-
token
_ match (12) -
top
_ level (12) -
top
_ level _ tasks (12) -
total
_ time (12) - tr (24)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
-
trace
_ object _ allocations (12) -
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) - truncate (108)
-
tsort
_ each (22) - tty? (12)
-
tty
_ output= (12) - uid (12)
- union (24)
- unlink (24)
- unpack (12)
- unpack1 (9)
- unparse (12)
- update (24)
- upto (12)
- uptodate? (12)
- utime (12)
- value (24)
- value= (12)
-
values
_ at (60) - vstack (24)
- wait2 (12)
- waitpid2 (12)
- warn (10)
-
warn
_ unless _ e _ option (12) -
warning
_ unless _ e _ option (12) -
win
_ platform? (12) - with (3)
-
with
_ index (60) -
with
_ object (24) -
world
_ readable? (24) -
world
_ writable? (24) - writable? (12)
-
writable
_ real? (12) - write (24)
- xmlrpc (3)
- xpath (12)
- yaml (12)
- yield (12)
-
yield
_ self (8) -
yield
_ under (12) - zero (24)
- zero? (24)
- zip (24)
- パターンマッチ (12)
- 制御構造 (12)
- 正規表現 (12)
- 演算子式 (12)
- 終了処理 (12)
検索結果
先頭5件
- RubyVM
. resolve _ feature _ path - RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String - RubyVM
:: InstructionSequence # absolute _ path -> String | nil - RubyVM
:: InstructionSequence # path -> String - RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence
-
RubyVM
. resolve _ feature _ path (35234.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"]
//}... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (29106.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_binar... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (29100.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 # path -> String (29100.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... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23222.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数......れかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23222.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数......れかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node (23212.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして......す。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (CALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree......pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関......なノードに置き換えてツリーを生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
#......args: nil
# body:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (CALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23212.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関......なノードに置き換えてツリーを生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
#......args: nil
# body:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (CALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (23112.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッド......せん。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")
# ※表示の都合上改行しているが実際は改行......0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}
@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data... -
Time
. at(time) -> Time (18191.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......0 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0900
Time.at(1582721899,......in: "UTC") # => 2020-02-26 12:58:19 UTC
Time.at(1582721899, in: "C") # => 2020-02-26 13:58:19 +0300
//}... -
Time
. at(time , in:) -> Time (18191.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......0 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0900
Time.at(1582721899,......in: "UTC") # => 2020-02-26 12:58:19 UTC
Time.at(1582721899, in: "C") # => 2020-02-26 13:58:19 +0300
//}... -
Time
. at(time) -> Time (18179.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0... -
Time
. at(time , in:) -> Time (18179.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0... -
Time
. at(time) -> Time (18164.0) -
time で指定した時刻の Time オブジェクトを返します。
...で指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
//}... -
Time
. at(seconds , xseconds , unit) -> Time (18151.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します......ゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec #...
