種類
ライブラリ
- English (10)
- ビルトイン (1965)
- abbrev (2)
- base64 (2)
- benchmark (7)
- bigdecimal (22)
-
bigdecimal
/ math (6) -
bigdecimal
/ util (4) -
cgi
/ core (1) - coverage (4)
- csv (85)
- date (11)
- digest (9)
- drb (1)
- erb (13)
- etc (8)
- fiddle (10)
-
fiddle
/ import (4) - fileutils (36)
- forwardable (4)
-
io
/ wait (2) -
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ context (3) -
irb
/ xmp (1) - json (48)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (2) -
json
/ add / date _ time (2) -
json
/ add / exception (2) -
json
/ add / range (2) -
json
/ add / rational (1) -
json
/ add / regexp (2) -
json
/ add / struct (2) -
json
/ add / time (2) - kconv (2)
- logger (27)
- matrix (108)
- mkmf (12)
- monitor (7)
-
mutex
_ m (1) -
net
/ http (79) - nkf (1)
- objspace (8)
- open-uri (8)
- open3 (1)
- openssl (109)
- optparse (59)
- ostruct (2)
- pathname (53)
- pp (5)
- prettyprint (1)
- prime (14)
- psych (24)
- pty (1)
- rake (51)
-
rake
/ packagetask (9) -
rake
/ testtask (2) - rbconfig (3)
-
rbconfig
/ sizeof (1) -
rdoc
/ known _ classes (1) -
rdoc
/ parser / ruby (2) - readline (1)
- resolv (3)
-
rexml
/ document (78) -
rexml
/ streamlistener (1) - ripper (3)
-
ripper
/ filter (3) -
ripper
/ lexer (7) -
ripper
/ sexp (2) - rubygems (6)
-
rubygems
/ config _ file (2) -
rubygems
/ custom _ require (1) -
rubygems
/ defaults (1) -
rubygems
/ gem _ path _ searcher (1) -
rubygems
/ installer (4) -
rubygems
/ platform (1) -
rubygems
/ requirement (16) -
rubygems
/ source _ index (1) -
rubygems
/ specification (9) -
rubygems
/ version (7) - securerandom (1)
- socket (17)
- stringio (27)
- strscan (45)
-
syslog
/ logger (1) - timeout (2)
- tsort (16)
- un (5)
- uri (13)
-
webrick
/ httprequest (1) -
webrick
/ httpservlet / cgihandler (1) -
webrick
/ ssl (1) - win32ole (22)
- zlib (3)
クラス
-
ARGF
. class (16) - Addrinfo (6)
- Array (159)
- BasicObject (14)
- BasicSocket (3)
-
Benchmark
:: Tms (1) - BigDecimal (19)
- Binding (4)
- CGI (1)
- CSV (39)
-
CSV
:: FieldInfo (3) -
CSV
:: Row (13) -
CSV
:: Table (28) - Class (7)
- Complex (33)
- Coverage (4)
-
DRb
:: DRbUnknown (1) - Data (18)
- Date (11)
- DateTime (3)
-
Digest
:: Base (7) - Dir (47)
- ERB (9)
- Encoding (15)
-
Encoding
:: Converter (22) -
Encoding
:: InvalidByteSequenceError (2) -
Encoding
:: UndefinedConversionError (1) - Enumerator (18)
-
Enumerator
:: Chain (1) -
Enumerator
:: Lazy (36) -
Enumerator
:: Yielder (3) - Exception (15)
- FalseClass (5)
- Fiber (7)
-
Fiddle
:: CStruct (1) -
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (1) -
Fiddle
:: Pointer (3) - File (44)
-
File
:: Stat (43) - Float (46)
- FrozenError (1)
-
Gem
:: ConfigFile (2) -
Gem
:: GemPathSearcher (1) -
Gem
:: Installer (4) -
Gem
:: Platform (1) -
Gem
:: Requirement (16) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (9) -
Gem
:: Version (7) - Hash (85)
- IO (63)
- IPSocket (1)
-
IRB
:: Context (3) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) - Integer (76)
-
JSON
:: Parser (3) -
JSON
:: State (14) - Logger (27)
- MatchData (31)
- Matrix (77)
-
Matrix
:: LUPDecomposition (1) - Method (24)
- Module (74)
- Monitor (5)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (7) -
Net
:: HTTPResponse (12) - NilClass (14)
- Numeric (37)
- Object (80)
-
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: ASN1 :: BMPString (2) -
OpenSSL
:: ASN1 :: BitString (2) -
OpenSSL
:: ASN1 :: Boolean (1) -
OpenSSL
:: ASN1 :: Enumerated (2) -
OpenSSL
:: ASN1 :: GeneralString (2) -
OpenSSL
:: ASN1 :: GeneralizedTime (2) -
OpenSSL
:: ASN1 :: GraphicString (2) -
OpenSSL
:: ASN1 :: IA5String (2) -
OpenSSL
:: ASN1 :: ISO64String (2) -
OpenSSL
:: ASN1 :: Integer (2) -
OpenSSL
:: ASN1 :: Null (1) -
OpenSSL
:: ASN1 :: NumericString (2) -
OpenSSL
:: ASN1 :: OctetString (2) -
OpenSSL
:: ASN1 :: PrintableString (2) -
OpenSSL
:: ASN1 :: Sequence (1) -
OpenSSL
:: ASN1 :: Set (2) -
OpenSSL
:: ASN1 :: T61String (2) -
OpenSSL
:: ASN1 :: UTCTime (2) -
OpenSSL
:: ASN1 :: UTF8String (2) -
OpenSSL
:: ASN1 :: UniversalString (2) -
OpenSSL
:: ASN1 :: VideotexString (2) -
OpenSSL
:: BN (24) - OpenStruct (2)
- OptionParser (51)
- PP (3)
- Pathname (53)
- PrettyPrint (1)
- Prime (4)
-
Prime
:: EratosthenesGenerator (3) -
Prime
:: PseudoPrimeGenerator (4) - Proc (7)
-
Psych
:: Nodes :: Node (2) -
Psych
:: ScalarScanner (1) -
Psych
:: Stream (2) -
Psych
:: Visitors :: YAMLTree (2) -
RDoc
:: Parser :: Ruby (2) -
REXML
:: Attribute (3) -
REXML
:: Attributes (12) -
REXML
:: CData (3) -
REXML
:: DocType (9) -
REXML
:: Document (6) -
REXML
:: Element (21) -
REXML
:: Elements (9) -
REXML
:: Entity (2) -
REXML
:: Instruction (2) -
REXML
:: Text (3) -
REXML
:: XPath (3) -
Rake
:: Application (5) -
Rake
:: FileList (17) -
Rake
:: FileTask (2) -
Rake
:: InvocationChain (4) -
Rake
:: NameSpace (2) -
Rake
:: PackageTask (9) -
Rake
:: TaskArguments (5) -
Rake
:: TestTask (2) - Random (12)
- Range (38)
- Rational (29)
- Refinement (1)
- Regexp (25)
- Resolv (2)
-
Resolv
:: DNS :: Name (1) - Ripper (9)
-
Ripper
:: Filter (3) -
Ripper
:: Lexer (3) - RubyVM (3)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (20) - Set (47)
- SignalException (5)
- Socket (6)
- String (190)
- StringIO (27)
- StringScanner (44)
- Struct (33)
- Symbol (8)
-
Syslog
:: Logger (1) - SystemCallError (1)
- TCPSocket (1)
- Thread (22)
-
Thread
:: Backtrace :: Location (7) -
Thread
:: ConditionVariable (2) -
Thread
:: Mutex (5) -
Thread
:: Queue (11) -
Thread
:: SizedQueue (5) - ThreadGroup (3)
- Time (78)
- TracePoint (20)
- TrueClass (5)
-
URI
:: FTP (1) -
URI
:: MailTo (3) - UnboundMethod (14)
- UncaughtThrowError (3)
- Vector (30)
-
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPServlet :: CGIHandler (1) - WIN32OLE (6)
-
WIN32OLE
_ EVENT (2) -
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (4) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIANT (3) - XMP (1)
-
Zlib
:: GzipWriter (2)
モジュール
- Abbrev (1)
- Base64 (2)
- Benchmark (6)
- BigMath (8)
- Comparable (8)
- Digest (1)
-
ERB
:: Util (4) - Enumerable (114)
- Etc (7)
- Fiddle (5)
-
Fiddle
:: Importer (3) - FileTest (14)
- FileUtils (36)
- Forwardable (4)
- GC (7)
-
GC
:: Profiler (4) - Gem (6)
- JSON (17)
-
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (1) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kconv (1)
- Kernel (155)
- Marshal (6)
- Math (23)
- MonitorMixin (1)
-
Net
:: HTTPExceptions (1) -
Net
:: HTTPHeader (35) - ObjectSpace (18)
- Open3 (1)
- OpenSSL (1)
-
OpenSSL
:: ASN1 (42) -
OpenURI
:: Meta (8) -
OptionParser
:: Arguable (7) - PTY (1)
- Process (8)
- Psych (13)
- RDoc (1)
-
REXML
:: Security (2) -
REXML
:: StreamListener (1) - Rake (2)
-
Rake
:: Cloneable (2) -
Rake
:: TaskManager (10) - RakeFileUtils (2)
- RbConfig (4)
- Readline (1)
-
RubyVM
:: AbstractSyntaxTree (6) -
RubyVM
:: MJIT (3) - SecureRandom (1)
- Signal (2)
- TSort (16)
- Timeout (2)
- URI (9)
-
WIN32OLE
:: VARIANT (3) - Warning (2)
- Zlib (1)
オブジェクト
- ENV (17)
キーワード
- ! (1)
- != (1)
- !~ (1)
-
$ $ (1) -
$ & (1) -
$ & # 39; (1) -
$ * (1) -
$ , (1) -
$ -0 (1) -
$ -F (1) -
$ -I (1) -
$ -K (1) -
$ . (1) -
$ / (1) -
$ 0 (1) -
$ 1 (1) -
$ 10 (1) -
$ 11 (1) -
$ 2 (1) -
$ 3 (1) -
$ 4 (1) -
$ 5 (1) -
$ 6 (1) -
$ 7 (1) -
$ 8 (1) -
$ 9 (1) -
$ : (1) -
$ ; (1) -
$ > (1) -
$ ARGV (1) -
$ CHILD _ STATUS (1) -
$ DEFAULT _ INPUT (1) -
$ INPUT _ LINE _ NUMBER (1) -
$ KCODE (1) -
$ LAST _ MATCH _ INFO (1) -
$ LAST _ PAREN _ MATCH (1) -
$ LAST _ READ _ LINE (1) -
$ LOAD _ PATH (1) -
$ NR (1) -
$ ORS (1) -
$ OUTPUT _ RECORD _ SEPARATOR (1) -
$ PROGRAM _ NAME (1) -
$ SAFE (1) -
$ _ (1) -
$ ` (1) -
$ archdir (1) -
$ hdrdir (1) -
$ libdir (1) -
$ sitearchdir (1) -
$ sitelibdir (1) -
$ srcdir (1) -
$ stderr (1) -
$ stdin (1) -
$ stdout (1) -
$ topdir (1) -
$ ~ (1) - % (6)
- & (6)
- * (9)
- ** (4)
- + (10)
- +@ (1)
- -@ (4)
-
/ (5) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - < (5)
- << (11)
- <= (5)
- <=> (16)
- == (27)
- === (11)
- =~ (4)
- > (5)
- >= (5)
- >> (4)
- ARGV (2)
- ASN1 (1)
- BMPString (2)
-
BUILD
_ RUBY _ PLATFORM (1) - Base (1)
- BigDecimal (2)
- BitString (2)
- Boolean (1)
-
CODE
_ CLASS _ TO _ OBJ (1) -
CODE
_ TO _ OBJ (1) - CompatibilityError (1)
- Complex (2)
- ConditionVariable (1)
- ConverterNotFoundError (1)
- DATA (1)
- DEBUG (1)
- DEBUG= (1)
-
DEFAULT
_ PARAMS (1) - DOSISH 対応 (1)
- Date (1)
- E (2)
- EXXX (1)
- Enumerated (2)
- ExternalEntity (1)
- FORMAT (2)
- Float (1)
- GNU (1)
- GeneralString (2)
- GeneralizedTime (2)
- GraphicString (2)
- IA5String (2)
-
INSTRUCTION
_ NAMES (1) - ISO64String (2)
- Instruction (1)
- Integer (3)
- InvalidByteSequenceError (1)
- JSON (1)
-
KNOWN
_ CLASSES (1) -
LEVEL
_ MAP (1) - LIMITS (1)
-
MAJOR
_ VERSION (1) -
MINOR
_ VERSION (1) - Mac OS X (1)
- Marshal フォーマット (1)
- MinGW (1)
- MonitorMixin (1)
-
Mutex
_ m (1) -
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 2 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) -
NEWS for Ruby 2
. 4 . 0 (1) -
NEWS for Ruby 3
. 1 . 0 (1) - NKF (1)
- NotationDecl (1)
- Null (1)
- NumericString (2)
-
OPERATING
_ SYSTEM _ DEFAULTS (1) - OPS (1)
- OPTS (1)
- ObjectId (2)
- OctetString (2)
- OptionParser (1)
- PI (2)
-
PLATFORM
_ DEFAULTS (1) - PrintableString (2)
- Proxy (1)
- RUBY (1)
-
RUBY
_ COPYRIGHT (1) -
RUBY
_ DESCRIPTION (1) -
RUBY
_ ENGINE (1) -
RUBY
_ ENGINE _ VERSION (1) -
RUBY
_ FREE (1) -
RUBY
_ PATCHLEVEL (1) -
RUBY
_ PLATFORM (1) -
RUBY
_ RELEASE _ DATE (1) -
RUBY
_ REVISION (1) -
RUBY
_ VERSION (1) - Rational (1)
- Requirement (1)
- Ruby (1)
- Ruby が動作するプラットフォーム (1)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
-
SCRIPT
_ LINES _ _ (1) -
SHIFT
_ JIS (1) - STDERR (1)
- STDIN (1)
- STDOUT (1)
- Sequence (1)
- Set (2)
-
Shift
_ JIS (1) - SizedQueue (1)
- Stat (1)
- String (2)
- StringScanner (1)
- T61String (2)
- TOPDIR (1)
- Thread (1)
- Time (1)
- UTCTime (2)
- UTF8String (2)
- UniversalString (2)
- VERSION (2)
-
VT
_ BSTR (1) -
VT
_ DATE (1) -
VT
_ DISPATCH (1) - Version (1)
- VideotexString (2)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ TYPE (1) -
WIN
_ PATTERNS (1) - Win32 (1)
- Win32ネイティブ版 (1)
- Win32ネイティブ版Rubyの互換性問題 (1)
- YAMLTree (1)
- [] (44)
- []= (14)
- ^ (5)
-
_ _ id _ _ (1) -
_ _ method _ _ (1) -
_ _ send _ _ (2) -
_ dump (2) -
_ id2ref (1) -
_ load (1) - ` (1)
- abbrev (2)
- abort (2)
-
abort
_ on _ exception (2) - abs (3)
- absolute? (1)
-
absolute
_ path (3) -
absolute
_ path? (1) - accept (2)
- acos (1)
- add (5)
- add? (1)
-
add
_ attribute (2) -
add
_ attributes (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ element (1) -
add
_ field (1) -
add
_ namespace (1) -
add
_ runtime _ dependency (1) -
add
_ trace _ func (1) - adjugate (1)
- advise (1)
-
alias
_ method (1) - all? (6)
- allbits? (1)
- allocate (1)
-
allocation
_ sourcefile (1) -
allocation
_ sourceline (1) -
allow
_ nan? (1) - alphanumeric (1)
- ancestors (1)
- angle (3)
-
angle
_ with (1) - antisymmetric? (1)
- any? (4)
- anybits? (1)
- append (2)
-
append
_ as _ bytes (1) -
append
_ features (1) - application (1)
- arg (3)
-
arg
_ config (1) - argv0 (1)
- arity (3)
- array (1)
-
array
_ nl (1) -
as
_ list (1) - ascend (2)
-
ascii
_ compatible? (1) -
asciicompat
_ encoding (2) - asctime (1)
- asin (1)
- at (7)
-
at
_ exit (1) - atan (2)
- atan2 (1)
- atime (4)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - attribute (1)
-
attribute
_ of (1) -
attributes
_ of (1) - autoclose? (1)
- autoload (2)
- autoload? (2)
- b (1)
- backtrace (2)
-
backtrace
_ locations (3) -
base
_ label (2) -
base
_ uri (1) - basename (2)
-
basic
_ auth (1) - basis (1)
- begin (2)
-
beginning
_ of _ line? (1) - benchmark (1)
- between? (1)
- bigdecimal (1)
-
bigdecimal
/ newton (1) - bind (2)
-
bind
_ call (2) - binding (1)
- binread (2)
- binwrite (1)
- birthtime (2)
-
bit
_ length (1) -
bit
_ set? (1) - blksize (1)
-
block
_ given? (1) - blockdev? (1)
- blocks (1)
- bm (1)
- bmbm (1)
- body (2)
-
body
_ permitted? (1) -
body
_ stream (1) -
body
_ stream= (1) - bol? (1)
- broadcast (1)
- bsearch (4)
-
bsearch
_ index (2) - build (2)
-
by
_ col (1) -
by
_ col! (1) -
by
_ col _ or _ row (1) -
by
_ col _ or _ row! (1) -
by
_ row (1) -
by
_ row! (1) - bytebegin (2)
- byteend (2)
- byteindex (1)
- byteoffset (2)
- byterindex (1)
- bytes (4)
- bytesize (1)
- byteslice (3)
- call (3)
-
callee
_ id (1) - caller (3)
-
caller
_ locations (2) - canonname (1)
- capitalize (1)
- capitalize! (1)
- captures (1)
- casecmp (2)
- casecmp? (2)
- catch (2)
- categories (1)
- cause (1)
- cbrt (1)
- cd (2)
- ceil (6)
- ceildiv (1)
- center (1)
- chain (1)
- chardev? (1)
- charpos (1)
- chars (2)
- charset (2)
- chdir (5)
- check (2)
-
check
_ circular? (1) -
check
_ until (1) - children (5)
- chmod (1)
-
chmod
_ R (1) - chomp (2)
- chomp! (1)
- chop (2)
- chop! (1)
- chown (3)
-
chown
_ R (1) - chr (3)
- chroot (1)
- chunk (3)
-
chunk
_ while (1) - chunked? (1)
- civil (1)
- clamp (2)
- class (1)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) - classify (1)
- cleanpath (1)
- clear (4)
-
clear
_ bit! (1) -
clear
_ exclude (1) - clone (6)
- close (3)
-
close
_ write (1) - closed? (2)
- cmp (2)
- code (1)
- codepage (1)
- codepoints (2)
- coerce (6)
-
cofactor
_ expansion (1) -
col
_ sep (1) - collect (9)
- collect! (7)
- collect2 (2)
-
collect
_ concat (3) -
collect
_ method (1) - column (2)
-
column
_ vectors (1) - columns (1)
- combination (2)
- combine (2)
- commands (1)
- compact (3)
- compact! (2)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) -
compare
_ file (1) - compatible? (1)
- compile (2)
-
compile
_ file (1) -
compile
_ option (1) - component (1)
- concat (6)
- configure (1)
- confstr (1)
- conj (1)
- conjugate (3)
- connect (1)
-
connect
_ from (2) -
const
_ added (1) -
const
_ defined? (1) -
const
_ get (1) -
const
_ load (1) -
const
_ set (1) -
const
_ source _ location (1) - constants (2)
- content (1)
-
content
_ encoding (1) -
content
_ length (1) -
content
_ length= (1) -
content
_ range (1) -
content
_ type (2) -
content
_ type= (1) - convert (4)
- converters (1)
- convpath (1)
- copy (1)
-
copy
_ stream (2) - correct? (1)
- cos (2)
- count (8)
-
count
_ nodes (1) -
count
_ objects (1) -
count
_ objects _ size (1) -
count
_ tdata _ objects (1) - covector (1)
- cp (1)
-
cp
_ r (1) - create (2)
-
create
_ id (1) -
create
_ makefile (1) - crypt (1)
- ctime (5)
- current (1)
-
current
_ scope (1) - curry (3)
- cycle (3)
-
datetime
_ format (1) -
datetime
_ format= (1) - day (1)
- debug (2)
- decode (1)
-
decode
_ www _ form _ component (1) - deconstruct (4)
-
deconstruct
_ keys (7) - dedup (1)
-
def
_ class (1) -
def
_ delegator (1) -
def
_ instance _ delegator (1) -
def
_ method (1) -
def
_ module (1) - default (3)
-
default
_ argv (1) -
default
_ event _ sources (1) -
default
_ external (1) -
default
_ external= (1) -
default
_ internal= (1) -
default
_ proc (1) - define (2)
-
define
_ finalizer (2) -
define
_ method (2) -
define
_ singleton _ method (2) -
define
_ task (1) -
defined
_ class (1) - delegate (1)
- delete (16)
- delete! (1)
- delete? (1)
-
delete
_ all (2) -
delete
_ at (1) -
delete
_ attribute (1) -
delete
_ element (1) -
delete
_ if (10) -
delete
_ namespace (1) -
delete
_ prefix (1) -
delete
_ prefix! (1) -
delete
_ suffix (1) -
delete
_ suffix! (1) - denominator (4)
-
deprecate
_ constant (1) - deq (2)
- descend (2)
-
destination
_ encoding (1) - det (1)
- detect (2)
- determinant (1)
- dev (1)
-
dev
_ major (1) -
dev
_ minor (1) - diagonal (1)
- difference (2)
- dig (3)
- digest (1)
- digest! (1)
- digits (2)
- directory? (1)
- dirname (2)
- disable (2)
- disasm (2)
- disassemble (2)
- disjoint? (1)
- display (1)
- div (2)
- divide (2)
- divmod (2)
- dlunwrap (1)
- dlwrap (1)
-
do
_ not _ reverse _ lookup (1) -
double
_ fig (1) - downcase (1)
- downcase! (1)
- downto (2)
- drop (1)
-
drop
_ while (5) - dst? (1)
- dump (6)
-
dump
_ stream (1) - dup (3)
-
e
_ option _ supplied (1) - each (32)
-
each
_ attribute (1) -
each
_ byte (6) -
each
_ capitalized _ name (1) -
each
_ char (3) -
each
_ child (8) -
each
_ codepoint (6) -
each
_ cons (2) -
each
_ element _ with _ attribute (1) -
each
_ element _ with _ text (1) -
each
_ entry (4) -
each
_ filename (1) -
each
_ grapheme _ cluster (2) -
each
_ header (1) -
each
_ index (1) -
each
_ key (3) -
each
_ line (11) -
each
_ name (1) -
each
_ object (4) -
each
_ pair (4) -
each
_ slice (2) -
each
_ strongly _ connected _ component (4) -
each
_ strongly _ connected _ component _ from (4) -
each
_ value (2) -
each
_ with _ index (6) -
each
_ with _ object (2) - eager (1)
-
egrep
_ cpp (2) - eigen (1)
- eigensystem (1)
- element (1)
- elements (1)
-
elements
_ to _ f (1) -
elements
_ to _ i (1) -
elements
_ to _ r (1) - empty (1)
- empty? (10)
- enable (2)
- enabled? (1)
- encode (3)
- encode! (2)
- encode64 (1)
-
encode
_ www _ form _ component (1) - encoding (2)
- end (2)
-
end
_ with? (2) - enter (1)
- entities (1)
- entity (2)
-
entity
_ expansion _ limit (1) -
entity
_ expansion _ text _ limit (2) -
entity
_ expansion _ text _ limit= (2) - entitydecl (1)
- entries (5)
-
entrywise
_ product (1) -
enum
_ for (4) - environment (1)
- eos? (1)
- eql? (17)
- equal? (3)
- erf (1)
- erfc (1)
- error (2)
-
error
_ bytes (1) -
error
_ char (1) - escape (1)
- eval (4)
-
eval
_ script (1) - even? (1)
- event (1)
- exact? (1)
- except (2)
- exception (3)
-
excluded
_ from _ list? (1) - exec (4)
-
exec
_ format (1) - executable? (1)
-
executable
_ real? (2) - execute (4)
- exist? (2)
- existing (1)
- existing! (1)
- exit (2)
- exit! (1)
- exp (2)
- ext (1)
- extend (1)
-
extend
_ object (1) - extended (1)
-
external
_ encoding (1) -
external
_ id (1) - extname (1)
- extract (4)
- fail (1)
-
family
_ addrinfo (2) -
fast
_ generate (1) -
fast
_ unparse (1) - fatal (3)
- fatal? (1)
- fcntl (1)
- fdatasync (1)
- fdiv (3)
- feed (1)
- fetch (10)
-
fetch
_ values (4) - field (1)
- field? (1)
-
field
_ size _ limit (1) - file? (1)
- filename (4)
- filename= (1)
- fileno (2)
- fill (2)
- filter (9)
- filter! (4)
-
filter
_ map (3) - find (2)
-
find
_ all (3) -
find
_ index (9) - finish (2)
- finite? (3)
- first (7)
-
first
_ column (1) -
first
_ lineno (2) -
flat
_ map (3) - flatten (3)
- flatten! (2)
- flock (1)
- floor (6)
- fnmatch (2)
- fnmatch? (1)
-
for
_ fd (1) - force (1)
-
force
_ encoding (1) -
force
_ quotes? (1) - foreach (8)
- fork (2)
-
form
_ data= (1) - format (2)
-
formatted
_ program _ filename (1) - formatter (1)
- freeze (2)
- frexp (1)
- friday? (1)
-
from
_ prime _ division (1) -
from
_ state (1) -
from
_ yaml (1) - frozen? (1)
- ftype (2)
- gamma (1)
-
garbage
_ collect (2) - gcd (1)
- gcdlcm (1)
- gem (1)
- generate (2)
-
generate
_ line (1) - get (2)
- get2 (2)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ byte (1) -
get
_ fields (1) -
get
_ print (2) -
get
_ text (1) - getaddress (2)
- getaddrinfo (1)
- getbyte (4)
- getc (2)
- getch (1)
- getgm (1)
- gethostbyname (2)
- gethostname (1)
- getlocal (2)
- getlogin (1)
- getname (1)
- getoptlong (1)
- getopts (3)
- gets (6)
- getutc (1)
- getwd (2)
- gid (1)
- glob (6)
- gm (2)
- gmt? (1)
-
gmt
_ offset (1) - gmtime (1)
- gmtoff (1)
-
grapheme
_ clusters (2) - grep (3)
-
grep
_ v (3) -
group
_ by (1) - groups (1)
- grpowned? (2)
- gsub (7)
- gsub! (5)
- h (1)
-
hadamard
_ product (1) - handler= (1)
-
has
_ elements? (1) - hash (11)
- head (1)
- head2 (2)
- header (2)
-
header
_ converters (1) - headers (3)
- help (1)
- helpfile (1)
- hex (1)
- hexdigest (1)
- hexdigest! (1)
- hexencode (1)
- home (2)
- hour (1)
- hstack (2)
-
html
_ escape (1) -
http
_ version (1) - httpd (1)
- hypot (1)
- identical? (2)
- imag (1)
- imaginary (1)
- import (1)
-
import
_ methods (1) -
in
_ namespace (1) - include? (2)
-
incomplete
_ input? (1) - indent (1)
- index (9)
- infinite? (3)
- info (2)
- inherited (1)
- initialize (1)
-
initialize
_ copy (1) - inject (3)
- ino (1)
-
inplace
_ mode (1) -
inplace
_ mode= (1) - insert (2)
-
insert
_ output (1) - inspect (35)
- install (3)
-
install
_ rb (1) - instance (2)
-
instance
_ delegate (1) -
instance
_ eval (2) -
instance
_ exec (1) -
instance
_ method (1) -
instance
_ methods (1) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) -
instruction
_ sequence (1) -
int
_ from _ prime _ division (1) - integer? (2)
- intern (2)
-
internal
_ encoding (2) - intersect? (1)
- intersection (2)
- inv (1)
- inverse (1)
- invert (1)
- invkind (1)
-
irb
/ ruby-token (1) -
is
_ a? (2) - isatty (1)
- isdst (1)
- iseuc (1)
- isjis (1)
- iterator? (1)
- itself (1)
- j (1)
- jj (1)
- join (4)
-
json
_ creatable? (1) -
json
_ create (8) -
keep
_ if (4) - key (1)
- key? (2)
- keys (1)
-
keyword
_ init? (1) -
kind
_ of? (2) - label (2)
-
laplace
_ expansion (1) - last (4)
-
last
_ column (1) -
last
_ comment (1) -
last
_ description (1) -
last
_ error (1) -
last
_ lineno (1) -
last
_ match (2) -
last
_ modified (1) -
last
_ status (1) -
latest
_ gc _ info (2) - lazy (2)
- lchmod (1)
- lchown (1)
- lcm (1)
- ldexp (1)
- length (9)
- level (1)
- lex (2)
- lgamma (1)
-
lib
_ dirs _ for (1) - limit (1)
- line (1)
-
line
_ stub (1) - lineno (3)
- lines (2)
- link (1)
- list (3)
- ljust (1)
- ln (1)
-
ln
_ s (1) - load (5)
-
load
_ file (2) -
load
_ file! (1) -
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ specification (1) -
load
_ stream (2) - local (2)
-
local
_ address (1) -
local
_ variable _ get (1) -
locale
_ charmap (1) - localtime (2)
- locked? (1)
- log (5)
- log10 (1)
- log2 (1)
- logger (1)
- lookup (1)
- loop (2)
- lshift! (1)
- lstat (2)
- lstrip (1)
- lstrip! (1)
- lup (1)
-
lup
_ decomposition (1) - magnitude (6)
-
main
_ type (1) - makedirs (1)
- malloc (1)
- map (9)
- map! (7)
- map2 (1)
-
marshal
_ dump (1) -
marshal
_ load (1) -
mask
_ bits! (1) - match (5)
- match? (4)
- matched (1)
- matched? (1)
-
matched
_ size (1) - matches? (1)
- max (9)
-
max
_ by (4) -
max
_ nesting (1) - mday (1)
- measure (1)
- member? (2)
- members (4)
-
memsize
_ of (1) -
memsize
_ of _ all (1) - merge (4)
- merge! (2)
- method (3)
-
method
_ added (1) -
method
_ defined? (1) -
method
_ id (1) -
method
_ missing (1) -
method
_ removed (1) -
method
_ undefined (1) - methods (1)
- min (9)
-
min
_ by (4) - minmax (6)
-
minmax
_ by (2) - minor (2)
- mkdir (2)
-
mkdir
_ p (1) - mkmf (1)
- mkpath (1)
- mktime (2)
-
mod
_ add (1) -
mod
_ exp (1) -
mod
_ mul (1) -
mod
_ sub (1) - mode (4)
-
module
_ eval (2) -
module
_ exec (1) -
module
_ function (3) - modulo (3)
- mon (1)
-
mon
_ enter (2) -
mon
_ exit (1) - monday? (1)
- monitor (1)
- month (1)
- mountpoint? (1)
- move (1)
- msg (1)
- mswin32 (1)
- mtime (3)
- mv (1)
- name (8)
- name= (1)
-
name
_ list (1) -
named
_ captures (2) - names (4)
- namespace (2)
- namespaces (2)
- nan? (1)
-
need
_ tar (1) -
need
_ tar _ bz2 (1) -
need
_ tar _ gz (1) -
need
_ zip (1) - needed? (1)
- negative? (4)
- nesting (1)
-
net
/ ftp (1) -
net
/ http (1) -
net
/ telnet (1) - new (107)
-
new
_ scope (1) -
new
_ seed (1) - next (4)
- next! (1)
-
next
_ element (1) -
next
_ float (1) -
next
_ values (1) -
next
_ year (1) - nlink (1)
- nobits? (1)
- none? (3)
- norm (1)
- normalize (1)
- now (1)
-
nowrite
_ flag (1) - nprocessors (1)
- nsec (1)
-
num
_ bits (1) -
num
_ bytes (1) -
num
_ waiting (1) - numerator (4)
-
object
_ id (1) -
object
_ nl (1) - oct (1)
- odd? (1)
- of (3)
- offset (2)
-
ole
_ classes (1) -
ole
_ query _ interface (1) - on (12)
-
on
_ head (1) -
on
_ tail (1) - one? (6)
- open (15)
- optparse (1)
-
optparse
/ date (1) -
optparse
/ shellwords (1) -
optparse
/ time (1) -
optparse
/ uri (1) - ord (2)
- order (4)
- order! (4)
-
original
_ dir (2) -
original
_ name (2) - owned? (3)
- owner (2)
- p (1)
- pack (2)
- pack テンプレート文字列 (1)
-
package
_ dir (1) -
package
_ dir _ path (1) -
package
_ files (1) - parameters (3)
- parent (1)
- parse (13)
- parse! (3)
-
parse
_ csv (1) -
parse
_ file (2) -
parse
_ line (1) -
parse
_ stream (2) - parser (1)
- partition (3)
- path (10)
- pathconf (1)
- pathmap (1)
- pause (1)
- peek (2)
-
peek
_ result (1) -
peek
_ values (1) - peep (1)
- permutation (2)
- permute (2)
- permute! (2)
- phase (3)
- pid (1)
- pipe? (1)
- pipeline (1)
- pointer (1)
- pointer= (1)
- polar (1)
- pop (3)
- pos (3)
- pos= (1)
- positive? (3)
- post (2)
- post2 (2)
-
post
_ match (2) - pow (2)
-
power
_ assert (1) - pp (2)
-
pre
_ match (2) - pread (1)
- pred (1)
- prefix (1)
- prefixes (2)
- prepend (2)
-
prepend
_ features (1) - prerelease? (1)
-
pretty
_ generate (1) -
pretty
_ print (3) -
pretty
_ print _ cycle (1) -
pretty
_ unparse (1) - prettyprint (1)
-
prev
_ float (1) -
prev
_ year (1) - prime? (1)
-
prime
_ division (2) -
prime
_ fasttest? (1) -
primitive
_ convert (4) -
primitive
_ errinfo (1) - print (4)
- printf (3)
- priority (1)
- priority= (1)
- private (4)
-
private
_ class _ method (2) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) - produce (1)
- product (2)
- progname (1)
- progname= (1)
-
program
_ name (1) -
prompt
_ mode (1) -
proper
_ subset? (1) -
proper
_ superset? (1) -
protected
_ method _ defined? (1) -
proxy
_ basic _ auth (1) -
psych
_ y (1) - public (2)
-
public
_ class _ method (2) -
public
_ constant (1) -
public
_ instance _ method (1) -
public
_ method (1) -
public
_ method _ defined? (1) -
public
_ send (2) - push (1)
- putback (2)
- putc (2)
- puts (4)
- pwd (2)
- pwrite (1)
- query (1)
- quo (3)
- quote (1)
-
quote
_ char (1) - r (1)
- raise (4)
-
raised
_ exception (1) - rake (1)
-
rake
/ gempackagetask (1) - rakefile (1)
- rand (8)
- range (1)
-
range
_ length (1) - rank (1)
- rationalize (9)
-
raw
_ data (1) -
rb
_ define _ method (1) -
rb
_ jump _ tag (1) -
rb
_ load (1) -
rb
_ parser _ append _ print (1) -
rb
_ parser _ while _ loop (1) -
rb
_ protect (1) - rdev (1)
-
rdev
_ major (1) -
rdev
_ minor (1) - rdoc (1)
-
rdoc
/ parser / c (1) -
rdoc
/ parser / ruby (1) -
reachable
_ objects _ from (1) - read (4)
-
read
_ body (2) - readable? (2)
-
readable
_ real? (1) - readbyte (3)
- readchar (2)
- readline (4)
- readlines (10)
- readlink (1)
- real (1)
- real? (1)
- realdirpath (1)
- realpath (3)
- realtime (1)
- receiver (3)
- rect (4)
- rectangular (4)
- reduce (3)
- regexp (1)
- regular? (1)
- reject (11)
- reject! (7)
- relative? (1)
-
relative
_ path _ from (1) - release (1)
- reload (1)
- remainder (2)
-
remote
_ address (1) - remove (1)
-
remove
_ class _ variable (1) -
remove
_ const (1) -
remove
_ entry (1) -
remove
_ instance _ variable (1) -
remove
_ method (1) - rename (1)
- reopen (4)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (4)
- replacement (1)
- replacement= (1)
- replicate (1)
- report (1)
-
report
_ on _ exception (1) -
request
_ body _ permitted? (1) -
request
_ get (2) -
request
_ head (2) -
request
_ post (2) - require (2)
-
require
_ relative (1) -
required
_ ruby _ version (1) -
required
_ rubygems _ version (1) - reset (1)
- resolve (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) - response (1)
-
response
_ body _ permitted? (1) - rest (1)
- rest? (1)
-
rest
_ size (1) - restore (2)
- restsize (1)
- result (3)
- resume (2)
-
return
_ headers? (1) -
return
_ value (1) - reverse (1)
- reverse! (1)
-
reverse
_ each (6) - rewind (2)
-
rexml
/ document (1) -
rexml
/ parsers / streamparser (1) -
rexml
/ parsers / ultralightparser (1) - rindex (4)
- rjust (1)
- rm (1)
-
rm
_ r (1) - rmdir (2)
- root (1)
- root? (1)
-
root
_ node (1) - rotate (1)
- rotate! (1)
- round (7)
- row (2)
-
row
_ sep (1) -
row
_ vectors (1) - rows (1)
- rpartition (1)
- rshift! (1)
- rstrip (1)
- rstrip! (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 1 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 8 . 5 feature (1) -
ruby 1
. 9 feature (1) -
ruby2
_ keywords (1) -
ruby
_ engine (1) -
ruby
_ opts (1) -
rubygems
/ commands / cert _ command (1) -
rubygems
/ commands / check _ command (1) -
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / environment _ command (1) -
rubygems
/ commands / fetch _ command (1) -
rubygems
/ commands / generate _ index _ command (1) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / outdated _ command (1) -
rubygems
/ commands / pristine _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / uninstall _ command (1) -
rubygems
/ package / tar _ input (1) -
rubygems
/ package / tar _ output (1) -
rubygems
/ package / tar _ reader (1) -
rubygems
/ security (1) -
rubygems
_ version (1) - run (2)
-
safe
_ load (2) - sample (2)
-
satisfied
_ by? (1) - saturday? (1)
- scalar (1)
- scan (4)
-
scan
_ full (1) -
scan
_ until (1) - scrub (3)
- scrub! (3)
-
search
_ convpath (1) -
search
_ full (1) - sec (1)
- seed (1)
- select (9)
- select! (4)
- self (1)
- send (2)
-
send
_ request (1) - separator (1)
- seplist (1)
-
set
_ backtrace (1) -
set
_ bit! (1) -
set
_ content _ type (1) -
set
_ debug _ output (1) -
set
_ encoding _ by _ bom (1) -
set
_ form _ data (1) -
set
_ range (3) -
set
_ trace _ func (2) - setbyte (1)
- setgid? (2)
- setproctitle (1)
- setproperty (2)
- setuid? (2)
-
sev
_ threshold (1) - sexp (1)
-
sexp
_ raw (1) -
sharing
_ detection (1) - shift (6)
- signal (1)
- signm (1)
- signo (1)
- sin (2)
-
singleton
_ class (1) -
singleton
_ class? (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - size (16)
- size? (2)
-
skew
_ symmetric? (1) - skip (1)
-
skip
_ until (1) - sleep (3)
- slice (8)
- slice! (8)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - socket (1)
- socket? (2)
- solve (1)
- sort (4)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (2) - source (2)
-
source
_ encoding (1) -
source
_ location (4) - space (1)
-
space
_ before (1) - spawn (4)
- specific? (1)
- split (6)
- sprintf (1)
- sprintf フォーマット (1)
- sqrt (3)
- squeeze (1)
- squeeze! (1)
- srand (2)
- src (1)
-
stand
_ alone? (1) - start (7)
-
start
_ with? (2) - stat (4)
- state (1)
- status (1)
- step (12)
- sticky? (2)
- stop (1)
- stop? (1)
- store (2)
- strftime (1)
- string (3)
- strip (1)
- strip! (1)
-
strongly
_ connected _ components (2) - struct (1)
- sub (7)
- sub! (4)
-
sub
_ ext (1) -
sub
_ type (1) -
subdomain
_ of? (1) - subsec (1)
- subset? (1)
- subtract (1)
- succ (3)
- succ! (1)
- sum (5)
- summarize (2)
-
summary
_ indent (1) -
summary
_ indent= (1) -
summary
_ width (1) -
summary
_ width= (1) - sunday? (1)
-
super
_ method (1) - superset? (1)
- swapcase (1)
- swapcase! (1)
- symlink (1)
- symlink? (2)
- synchronize (1)
-
synthesize
_ file _ task (1) - syscall (1)
- sysconf (1)
- sysconfdir (1)
- sysopen (1)
- system (5)
- systmpdir (1)
- syswrite (1)
- table (1)
- tag (1)
- take (3)
-
take
_ while (6) - tally (2)
- tan (1)
- tap (1)
- target (1)
- tasks (2)
- tcp (2)
- tell (2)
- terminate (1)
- test (2)
-
test
/ unit (1) - text (1)
- then (2)
- throw (1)
- thursday? (1)
- timeout (2)
- times (2)
-
to
_ a (18) -
to
_ ary (3) -
to
_ binary (1) -
to
_ bn (1) -
to
_ c (4) -
to
_ csv (3) -
to
_ d (4) -
to
_ enum (4) -
to
_ f (7) -
to
_ h (16) -
to
_ hash (5) -
to
_ i (8) -
to
_ int (3) -
to
_ json (20) -
to
_ mailtext (1) -
to
_ path (3) -
to
_ proc (6) -
to
_ ptr (1) -
to
_ r (7) -
to
_ regexp (1) -
to
_ rfc822text (1) -
to
_ ruby (2) -
to
_ s (44) -
to
_ set (2) -
to
_ str (2) -
to
_ string (1) -
to
_ sym (1) -
to
_ value (1) - today (1)
-
token
_ match (1) - tokenize (3)
-
top
_ level _ tasks (1) -
total
_ time (1) - touch (2)
- tr (2)
-
tr
_ s (1) -
tr
_ s! (1) - trace (2)
-
trace
_ var (3) - tracer (1)
- transfer (1)
- transform (1)
-
transform
_ keys (3) -
transform
_ keys! (3) -
transform
_ values (2) -
transform
_ values! (2) - transpose (1)
- trap (2)
- truncate (9)
-
try
_ convert (5) -
try
_ lock (1) - tsort (3)
-
tsort
_ each (4) - tty? (1)
- tuesday? (1)
-
tv
_ nsec (1) -
tv
_ sec (1) -
tv
_ usec (1) - type (1)
-
type
_ params (1) - typelibs (1)
- u (1)
- ucmp (1)
- uid (1)
- umask (2)
- uname (1)
- unbind (1)
-
unconverted
_ fields? (1) -
undef
_ method (1) -
undefine
_ finalizer (1) - undump (1)
- ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - union (4)
- uniq (2)
- uniq! (1)
- unknown (2)
- unlink (3)
- unnormalize (1)
- unpack (1)
- unpack1 (1)
- unparse (1)
- unscan (1)
- unshift (1)
-
untrace
_ var (1) - upcase (1)
- upcase! (1)
- update (2)
- upto (3)
- uptodate? (1)
- urandom (1)
-
url
_ encode (1) -
urlsafe
_ encode64 (1) -
use
_ readline (1) -
use
_ readline? (1) - usec (1)
- utc (3)
- utc? (1)
-
utc
_ offset (1) - utime (1)
-
valid
_ encoding? (1) - value (6)
- values (2)
-
values
_ at (5) - ver (1)
-
verbose
_ flag (1) - version (2)
- vstack (2)
- wait (2)
- wait2 (1)
-
wait
_ for _ cond (1) -
wait
_ readable (1) -
wait
_ writable (1) - waitpid (1)
- waitpid2 (1)
- wakeup (1)
- warn (5)
-
warn
_ unless _ e _ option (1) - warning (2)
-
warning
_ unless _ e _ option (1) - wday (1)
- wednesday? (1)
-
win
_ platform? (1) - with (1)
-
with
_ defaults (1) -
with
_ index (6) -
with
_ object (2) -
world
_ readable? (2) -
world
_ writable? (2) - writable? (2)
-
writable
_ real? (1) - write (5)
-
write
_ headers? (1) - xpath (1)
- y (1)
- yaml (1)
-
yaml
/ store (1) -
yaml
_ tag (1) - yday (1)
- year (1)
- yield (2)
-
yield
_ self (2) - zero (3)
- zero? (3)
- zip (6)
- zone (1)
- | (6)
- ~ (2)
- はじめに (1)
- スレッド (1)
- パターンマッチ (1)
- リテラル (1)
- 制御構造 (1)
- 正規表現 (1)
- 演算子式 (1)
検索結果
先頭5件
-
Time
# -(sec) -> Time (63850.0) -
自身より sec 秒だけ前の時刻を返します。
自身より sec 秒だけ前の時刻を返します。
@param sec 実数を秒を単位として指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - 2592000 # => 2000-01-01 00:00:00 +0900
//} -
Time
# -(time) -> Float (63835.0) -
自身と time との時刻の差を Float で返します。単位は秒です。
自身と time との時刻の差を Float で返します。単位は秒です。
@param time 自身との差を算出したい Time オブジェクトを指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - t # => 2592000.0
//} -
Rational
# -(other) -> Rational | Float (63655.0) -
差を計算します。
差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//} -
Float
# -(other) -> Float (63637.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//} -
Integer
# -(other) -> Numeric (63637.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//} -
Set
# -(enum) -> Set (63637.0) -
差集合、すなわち、元の集合の要素のうち引数 enum に含まれる要素を取り除いた 新しい集合を作ります。
差集合、すなわち、元の集合の要素のうち引数 enum に含まれる要素を取り除いた
新しい集合を作ります。
@param enum each メソッドが定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。
//emlist[][ruby]{
p Set[10, 20, 30] - Set[10, 20, 40]
# => #<Set: {30}>
//} -
Gem
. # ruby -> String (54952.0) -
実行中のRubyインタプリタのパスを返します。
実行中のRubyインタプリタのパスを返します。 -
RbConfig
. ruby -> String (54952.0) -
ruby コマンドのフルパスを返します。
ruby コマンドのフルパスを返します。 -
Array
# -(other) -> Array (54655.0) -
自身から other の要素を取り除いた配列を生成して返します。
自身から other の要素を取り除いた配列を生成して返します。
要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param other 自身から取り除きたい要素の配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します... -
Complex
# -(other) -> Complex (54655.0) -
差を計算します。
差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//} -
irb
/ ruby-token (54049.0) -
Ruby のソースコード中の各種トークンを定義したサブライブラリです。
Ruby のソースコード中の各種トークンを定義したサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
ruby 1
. 6 feature (40792.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
ruby 1.6 feature
ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。
((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。
== 1.6.8 (2002-12-24) -> stable-snapshot
: 2003-01-22: errno
EAGAIN と EWOULDBLOCK が同じ値のシステムで、EWOULDBLOCK がなくなっ
ていま... -
rubygems
/ security (37279.0) -
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
=== 署名付きの Gem パッケージ
==== 目次
* 概要
* 解説
* コマンドラインオプション
* OpenSSL リファレンス
* Bugs / TODO
* 作者について
==== 概要
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
以下のセクションでは、署名付きの Gem パッケージを作成する方法を
ステップバイステップで解説しています。
==== 解説
@todo メソッドではない
あなたが自分の Gem に署名するためには、... -
Object
:: RUBY _ PATCHLEVEL -> Integer (37024.0) -
Ruby のパッチレベルを表す Integer オブジェクトです。
Ruby のパッチレベルを表す Integer オブジェクトです。
パッチレベルはRubyの各バージョンに対するバグ修正パッチの適用をカウントしています。
teeny リリースのそれぞれについてパッチレベルは 0 から始まり、
その teeny リリースに対してバグ修正パッチが適用される度に増えていきます。
パッチレベルという概念および RUBY_PATCHLEVEL 定数は、 Ruby 1.8.5-p1 以降、 1.8.6 以降で導入されました。
1.8.5やそれ以前のバージョンでは定義されていません。 -
Object
:: RUBY _ DESCRIPTION -> String (36988.0) -
Ruby の詳細を表す文字列。
Ruby の詳細を表す文字列。
ruby -v で表示される内容が格納されています。 -
Fiddle
:: BUILD _ RUBY _ PLATFORM -> String (36970.0) -
ビルドに用いた ruby のプラットフォームを表す文字列。
ビルドに用いた ruby のプラットフォームを表す文字列。
通常、Object::RUBY_PLATFORM と同じ。 -
Gem
:: Specification # to _ ruby -> String (36952.0) -
自身を再現するための Ruby スクリプトを文字列で返します。
自身を再現するための Ruby スクリプトを文字列で返します。
省略されている値はデフォルト値が使用されます。 -
Object
:: RUBY _ COPYRIGHT -> String (36952.0) -
Ruby のコピーライトを表す文字列。
Ruby のコピーライトを表す文字列。 -
Object
:: RUBY _ RELEASE _ DATE -> String (36952.0) -
Ruby のリリース日を表す文字列。
Ruby のリリース日を表す文字列。 -
Psych
:: Nodes :: Node # to _ ruby -> object (36952.0) -
AST を ruby のオブジェクトに変換します。
AST を ruby のオブジェクトに変換します。 -
Rake
:: TestTask # ruby _ opts -> Array (36952.0) -
テスト実行時に Ruby コマンドに渡されるオプションを返します。
テスト実行時に Ruby コマンドに渡されるオプションを返します。 -
Enumerable
# partition -> Enumerator (36919.0) -
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。
各要素に対してブロックを評価して、その値が真であった要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//} -
Enumerable
# partition {|item| . . . } -> [[object] , [object]] (36919.0) -
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。
各要素に対してブロックを評価して、その値が真であった要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//} -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (36919.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
インスタンスメソッド name がモジュールに定義されており、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義されたメソッドも対象になります。
@see Module#method_defined?, Module#public_method_defined?, Module#private_method_defined?
//e... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (36919.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 -
Object
:: RUBY _ PLATFORM -> String (36904.0) -
プラットフォームを表す文字列。
プラットフォームを表す文字列。 -
rubygems
/ commands / install _ command (36685.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
--platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-v, --version VERSION 指定されたバージョンの Gem パッケージをインストールします
Install/Update Op... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (36655.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ column -> Integer (36637.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//} -
RubyVM
:: AbstractSyntaxTree :: Node # first _ lineno -> Integer (36637.0) -
ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_lineno # => 1
//} -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (36637.0) -
self のデバッグ用の情報を含んだ文字列を返します。
self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//} -
RubyVM
:: AbstractSyntaxTree :: Node # last _ column -> Integer (36637.0) -
ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_column # => 5
//} -
RubyVM
:: AbstractSyntaxTree :: Node # last _ lineno -> Integer (36637.0) -
ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_lineno # => 1
//} -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//} -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//} -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
(1.0).to_json # => "1.0"
//} -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # ... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//} -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"null" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//} -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby... -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (36619.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (36619.0) -
self の種類を Symbol で返します。
self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//} -
rubygems
/ commands / list _ command (36325.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Gem パッケージの名前を前方一致で検索するためのライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力します
-d, --[no-]details Gem パッケージの詳細も表示します
--[no-]versions ... -
rubygems
/ commands / uninstall _ command (36289.0) -
Gem パッケージをアンインストールするためのライブラリです。
Gem パッケージをアンインストールするためのライブラリです。
Usage: gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --... -
rubygems
/ commands / specification _ command (36253.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all ... -
rubygems
/ commands / cert _ command (36235.0) -
Gem パッケージの証明書や署名の設定を管理するためのライブラリです。
Gem パッケージの証明書や署名の設定を管理するためのライブラリです。
Usage: gem cert [options]
Options:
-a, --add CERT 信頼された証明書を追加します
-l, --list 信頼されている証明書の一覧を表示します
-r, --remove STRING STRING を含む証明書を削除します
-b, --build EMAIL_ADDR EMAIL_ADDR ... -
rubygems
/ commands / outdated _ command (36235.0) -
更新が必要な Gem パッケージの一覧を出力するためのライブラリです。
更新が必要な Gem パッケージの一覧を出力するためのライブラリです。
Usage: gem outdated [options]
Options:
--platform PLATFORM 指定されたプラットフォームに関する情報を表示します
Local/Remote Options:
-l, --local 操作をローカルに限定します
-r, --remote 操作をリモートに限定します
-b, --both ... -
rubygems
/ commands / contents _ command (36217.0) -
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
インストールされている Gem パッケージに含まれているファイルリストを表示するためのライブラリです。
Usage: gem contents GEMNAME [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem パッケージの内容を表示します
-s, --spec-dir a,b,c 指定されたパス以下にある Gem パッケージを検索します
-l, --[no-]lib-only Gem パッケージの lib ディ... -
rubygems
/ commands / fetch _ command (36181.0) -
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
Usage: gem fetch GEMNAME [GEMNAME ...] [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem を取得します
--platform PLATFORM 指定されたプラットフォームの Gem を取得します
Local/Remote Options:
-B, --bulk-threshold COUNT ... -
rubygems
/ commands / generate _ index _ command (36127.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
ある Gem サーバに対するインデックスを作成するためのライブラリです。
Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
... -
rubygems
/ commands / pristine _ command (36127.0) -
インストールされている Gem パッケージを初期状態にするためのライブラリです。
インストールされている Gem パッケージを初期状態にするためのライブラリです。
Usage: gem pristine [args] [options]
Options:
--all インストールされている全ての Gem パッケージを
初期状態に戻します
-v, --version VERSION 指定したバージョンの Gem パッケージを
... -
rubygems
/ commands / environment _ command (36091.0) -
RubyGems の環境に関する情報を表示するためのライブラリです。
RubyGems の環境に関する情報を表示するためのライブラリです。
Usage: gem environment [arg] [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイル... -
rubygems
/ package / tar _ input (36049.0) -
gem-format な tar ファイルを読み込む Gem::Package::TarReader のラッ パークラスを提供するライブラリです。
gem-format な tar ファイルを読み込む Gem::Package::TarReader のラッ
パークラスを提供するライブラリです。 -
rubygems
/ package / tar _ output (36049.0) -
gem-format な tar ファイルを書き出す Gem::Package::TarWriter のラッ パークラスを提供するライブラリです。
gem-format な tar ファイルを書き出す Gem::Package::TarWriter のラッ
パークラスを提供するライブラリです。 -
rubygems
/ package / tar _ reader (36049.0) -
gem-format な tar ファイルを読むためのクラスを提供するライブラリです。
gem-format な tar ファイルを読むためのクラスを提供するライブラリです。 -
Time
# strftime(format) -> String (29791.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
時刻を format 文字列に従って文字列に変換した結果を返します。
@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* ... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (28891.0) -
型が持つソースインターフェイスを取得します。
型が持つソースインターフェイスを取得します。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォルトのソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = ... -
RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node (28789.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリ... -
RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (28789.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリ... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (28399.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
このメソッドはProcやメソッドが定義されたファイルを読み込む必要があるため、
irbのようなファイルを介さない対話的環境では動作しません。
@param proc Procもしくはメソッドオブジェクトを指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param e... -
String
# tr(pattern , replace) -> String (28261.0) -
pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。
pattern 文字列に含まれる文字を検索し、
それを replace 文字列の対応する文字に置き換えます。
pattern の形式は tr(1) と同じです。つまり、
`a-c' は a から c を意味し、"^0-9" のように
文字列の先頭が `^' の場合は指定文字以外が置換の対象になります。
replace に対しても `-' による範囲指定が可能です。
`-' は文字列の両端にない場合にだけ範囲指定の意味になります。
`^' も文字列の先頭にあるときにだけ否定の効果を発揮します。
また、`-', `^', `\' はバックスラッシュ (`\') によりエスケープできます。
... -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (28261.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
ブロックを sec 秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラー... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (28261.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
ブロックを sec 秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラー... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (28255.0) -
タスクを定義します。
タスクを定義します。
@param task_class タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Task t => []>
end
//} -
Object
:: RUBY _ ENGINE -> String (28222.0) -
Ruby処理系実装の種類を表す文字列。
Ruby処理系実装の種類を表す文字列。
例:
$ ruby-1.9.1 -ve 'p RUBY_ENGINE'
ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux]
"ruby"
$ jruby -ve 'p RUBY_ENGINE'
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
"jruby" -
REXML
:: DocType # entities -> { String => REXML :: Entity } (28219.0) -
DTD で宣言されている実体の集合を Hash で返します。
DTD で宣言されている実体の集合を Hash で返します。
返される Hash は実体参照名をキーとし、対応する REXML::Entity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれています。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.entities # => { "gt" => #... -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (28219.0) -
要素から key という属性名の属性を削除します。
要素から key という属性名の属性を削除します。
削除された属性を返します。
key という属性名の属性が存在しない場合は削除されずに、nil を返します。
@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x... -
Rake
:: FileTask # timestamp -> Time | Rake :: LateTime (28219.0) -
ファイルタスクのタイムスタンプを返します。
ファイルタスクのタイムスタンプを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//} -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (28219.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
script_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hello'")
end
//}
@raise RuntimeError :script_comp... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (28099.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
このメソッドはProcやメソッドが定義されたファイルを読み込む必要があるため、
irbのようなファイルを介さない対話的環境では動作しません。
@param proc Procもしくはメソッドオブジェクトを指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param e... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node (28081.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR である... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (28081.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR である... -
ObjectSpace
. # count _ tdata _ objects(result _ hash = nil) -> Hash (28021.0) -
T_DATA の種類ごとにオブジェクトの数を格納したハッシュを返します。
T_DATA の種類ごとにオブジェクトの数を格納したハッシュを返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。プローブ効果を避けるために使用します。
@raise TypeError result_hash にハッシュ以外を指定した時に発生します。
本メソッドは普通の Ruby プログラマ向けのメソッドではありません。パフォー
マンスに興味のある C Ruby の開発者向けのもので... -
JSON
:: State . from _ state(options) -> JSON :: State (28009.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
与えられた options によって生成した JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を
返します。options が JSON::State のインスタンスである場合は単に
options を返します。いずれでも無い場合は、何も設定されていない JSON::State の
インスタンスを返します。
//emlist[例 Hash... -
ObjectSpace
. # count _ objects _ size(result _ hash = nil) -> Hash (28009.0) -
型ごとのオブジェクトサイズをバイト単位で格納したハッシュを返します。
型ごとのオブジェクトサイズをバイト単位で格納したハッシュを返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。プローブ効果を避けるために使用します。
戻り値の内容は完全ではない事に注意してください。この内容はあくまでもヒ
ントとして扱う必要があります。特に T_DATA の合計値は正しくないでしょう。
//emlist[例][ruby]{
ObjectSpace.count_objec... -
String
# tr _ s(pattern , replace) -> String (28009.0) -
文字列の中に pattern 文字列に含まれる文字が存在したら、 replace 文字列の対応する文字に置き換えます。さらに、 置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
文字列の中に pattern 文字列に含まれる文字が存在したら、
replace 文字列の対応する文字に置き換えます。さらに、
置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
pattern の形式は tr(1) と同じです。
つまり「a-c」は a から c を意味し、
"^0-9" のように文字列の先頭が「^」の場合は指定した文字以外が置換の対象になります。
replace でも「-」を使って範囲を指定できます。
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
同様に、「^」もその効果は文字列の先頭にあるときだけです。
また、「-」、「^」... -
ObjectSpace
. # count _ objects(result _ hash = {}) -> Hash (27991.0) -
オブジェクトを種類ごとにカウントした結果を Hash として返します。
オブジェクトを種類ごとにカウントした結果を Hash として返します。
このメソッドは C Ruby 以外の Ruby では動かないでしょう。
@param result_hash ハッシュを指定します。与えられたハッシュは上書きして返されます。
これを利用すると測定による影響を避けることができます。
@raise TypeError 引数に Hash 以外を与えた場合、発生します。
//emlist[例][ruby]{
ObjectSpace.count_objects # => {:TOTAL=>10000, :FREE=>3011, :T_... -
Pathname
# realpath -> Pathname (27991.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/b... -
Pathname
# realpath(basedir = nil) -> Pathname (27991.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/b... -
String
# lstrip -> String (27985.0) -
文字列の先頭にある空白文字を全て取り除いた新しい文字列を返します。 空白文字の定義は " \t\r\n\f\v\0" です。
文字列の先頭にある空白文字を全て取り除いた新しい文字列を返します。
空白文字の定義は " \t\r\n\f\v\0" です。
//emlist[例][ruby]{
p " abc\n".lstrip #=> "abc\n"
p "\t abc\n".lstrip #=> "abc\n"
p "abc\n".lstrip #=> "abc\n"
//}
@see String#strip, String#rstrip -
String
# rstrip -> String (27985.0) -
文字列の末尾にある空白文字を全て取り除いた新しい文字列を返します。 空白文字の定義は " \t\r\n\f\v\0" です。
文字列の末尾にある空白文字を全て取り除いた新しい文字列を返します。
空白文字の定義は " \t\r\n\f\v\0" です。
//emlist[例][ruby]{
p " abc\n".rstrip #=> " abc"
p " abc \t\r\n\0".rstrip #=> " abc"
p " abc".rstrip #=> " abc"
p " abc\0 ".rstrip #=> " abc"
str = "abc\n"
p str.rstrip #=> "abc"
p str ... -
Encoding
:: Converter # destination _ encoding -> Encoding (27973.0) -
変換先のエンコーディングを返します。
変換先のエンコーディングを返します。
@return 変換先のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.destination_encoding #=> #<Encoding:EUC-JP>
//} -
StringScanner
# string -> String (27973.0) -
スキャン対象にしている文字列を返します。
スキャン対象にしている文字列を返します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.string # => "test string"
//}
返り値は freeze されていません。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.string.frozen? # => false
//}
なお、このメソッドは StringScanner.new に渡した
文字列をその... -
Object
:: RUBY _ VERSION -> String (27970.0) -
Ruby のバージョンを表す文字列。
Ruby のバージョンを表す文字列。
Ruby のバージョンは、major.minor.teeny という形式です。 -
String
# strip -> String (27967.0) -
文字列先頭と末尾の空白文字を全て取り除いた文字列を生成して返します。 空白文字の定義は " \t\r\n\f\v\0" です。
文字列先頭と末尾の空白文字を全て取り除いた文字列を生成して返します。
空白文字の定義は " \t\r\n\f\v\0" です。
//emlist[例][ruby]{
p " abc \r\n".strip #=> "abc"
p "abc\n".strip #=> "abc"
p " abc".strip #=> "abc"
p "abc".strip #=> "abc"
p " \0 abc \0".strip #=> "abc"
str = "\tabc\n"
p str.strip ... -
Gem
:: Platform :: RUBY -> String (27952.0) -
Pure Ruby の Gem はバイナリファイルをビルドするために Gem::Specification#extensions を使用する可能性があります。
Pure Ruby の Gem はバイナリファイルをビルドするために Gem::Specification#extensions
を使用する可能性があります。 -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (27952.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。 -
Object
:: RUBY _ ENGINE _ VERSION -> String (27952.0) -
Ruby処理系実装のバージョンを表す文字列。
Ruby処理系実装のバージョンを表す文字列。 -
Object
:: RUBY _ REVISION -> String (27952.0) -
Ruby の GIT コミットハッシュを表す String オブジェクトです。
Ruby の GIT コミットハッシュを表す String オブジェクトです。 -
WEBrick
:: HTTPServlet :: CGIHandler :: Ruby -> String (27952.0) -
Ruby のパスを返します。
Ruby のパスを返します。 -
Date
. json _ create(hash) -> Date (27949.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。 -
DateTime
. json _ create(hash) -> DateTime (27949.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。 -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (27937.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
バックトレース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end
... -
Exception
. exception(error _ message = nil) -> Exception (27937.0) -
例外オブジェクトを生成して返します。
例外オブジェクトを生成して返します。
@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = E... -
Exception
# exception(error _ message) -> Exception (27919.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定します。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogeho... -
Matrix
# entrywise _ product(m) -> Matrix (27919.0) -
アダマール積(要素ごとの積)を返します。
アダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//} -
Method
# super _ method -> Method | nil (27919.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
self 内で super を実行した際に実行されるメソッドを Method オブジェ
クトにして返します。
@see UnboundMethod#super_method
//emlist[例][ruby]{
class Super
def foo
"superclass method"
end
end
class Sub < Super
def foo
"subclass method"
end
end
m = Sub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass me... -
OptionParser
:: Arguable # options -> OptionParser (27919.0) -
自身をパースするための OptionParser オブジェクトを返します。 初回呼び出し時に自動的に生成されます。 この OptionParser#default_argv には self がセットされています。
自身をパースするための OptionParser オブジェクトを返します。
初回呼び出し時に自動的に生成されます。
この OptionParser#default_argv には self がセットされています。
ブロックを与えた場合は、OptionParser を引数としてブロックを実行します。
ブロックの実行結果を返します。
ブロックの実行途中で OptionParser::ParseError
が発生した場合は、全て rescue し、エラーメッセージを出力し、
nil を返します。
//emlist[][ruby]{
require 'optparse'
o = nil
ARG... -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (27919.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
cleanpath は、実際にファイルシステムを参照することなく、文字列操作
だけで処理を行います。
@param consider_symlink 真ならパス要素にシンボリックリンクがあった場合
にも問題ないように .. を残します。
//emlist[例][ruby]{
require "pathname"
path = Pathname.new("//.././../")
path # => #<Pa... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (27919.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path # => #<Pathname:/path/to/testfile>
path.e...