別のキーワード
ライブラリ
- English (10)
- ビルトイン (1156)
- abbrev (2)
- base64 (1)
- benchmark (4)
- bigdecimal (30)
-
bigdecimal
/ ludcmp (1) -
bigdecimal
/ math (6) -
bigdecimal
/ util (2) -
cgi
/ core (1) - cmath (4)
- coverage (2)
- csv (66)
- date (4)
- digest (1)
- drb (1)
- erb (12)
- etc (7)
- fiber (1)
- fiddle (11)
-
fiddle
/ import (4) - fileutils (33)
-
io
/ wait (1) -
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ context (3) -
irb
/ xmp (1) - json (25)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / rational (1) - kconv (2)
- logger (29)
- matrix (57)
- mkmf (14)
-
net
/ http (48) - nkf (1)
- objspace (7)
- open-uri (2)
- open3 (1)
- openssl (87)
- optparse (38)
- ostruct (1)
- pathname (27)
- pp (5)
- prettyprint (1)
- prime (7)
- psych (12)
- pty (1)
- rake (41)
-
rake
/ packagetask (6) -
rake
/ testtask (1) - rbconfig (1)
-
rbconfig
/ sizeof (1) -
rdoc
/ known _ classes (1) -
rdoc
/ parser / ruby (4) - readline (1)
- resolv (4)
- rexml (1)
-
rexml
/ document (80) -
rexml
/ streamlistener (1) - ripper (8)
-
ripper
/ filter (3) -
ripper
/ lexer (7) -
ripper
/ sexp (2) - rubygems (2)
-
rubygems
/ config _ file (2) -
rubygems
/ custom _ require (1) -
rubygems
/ gem _ path _ searcher (1) -
rubygems
/ installer (4) -
rubygems
/ platform (1) -
rubygems
/ requirement (9) -
rubygems
/ source _ index (1) -
rubygems
/ specification (5) -
rubygems
/ version (9) - set (14)
- socket (9)
- stringio (20)
- strscan (31)
-
syslog
/ logger (2) - thread (12)
- timeout (2)
- tsort (14)
- un (13)
- uri (8)
-
webrick
/ httpservlet / cgihandler (1) -
webrick
/ ssl (2) - win32ole (17)
- zlib (3)
クラス
-
ARGF
. class (24) - Addrinfo (4)
- Array (110)
- BasicObject (5)
- BasicSocket (2)
- BigDecimal (27)
- Binding (4)
- CGI (1)
- CSV (28)
-
CSV
:: FieldInfo (3) -
CSV
:: Row (13) -
CSV
:: Table (22) - Class (7)
- Complex (32)
- Coverage (2)
-
DRb
:: DRbUnknown (1) - Date (4)
-
Digest
:: Base (1) - Dir (23)
- ERB (8)
- Encoding (4)
-
Encoding
:: Converter (10) -
Encoding
:: InvalidByteSequenceError (2) - Enumerator (7)
-
Enumerator
:: Lazy (30) -
Enumerator
:: Yielder (2) - Exception (5)
- FalseClass (5)
- Fiber (3)
-
Fiddle
:: CStruct (1) -
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (1) -
Fiddle
:: Pointer (3) - File (35)
-
File
:: Stat (29) - Float (33)
-
Gem
:: ConfigFile (2) -
Gem
:: GemPathSearcher (1) -
Gem
:: Installer (4) -
Gem
:: Platform (1) -
Gem
:: Requirement (9) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (5) -
Gem
:: Version (9) - Hash (31)
- IO (37)
-
IRB
:: Context (3) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) - Integer (28)
-
JSON
:: State (5) - Logger (29)
- MatchData (12)
- Matrix (41)
-
Matrix
:: LUPDecomposition (1) - Method (8)
- Module (47)
- Mutex (2)
-
Net
:: HTTP (21) -
Net
:: HTTPGenericRequest (2) -
Net
:: HTTPResponse (6) - NilClass (9)
- Numeric (26)
- Object (34)
-
OpenSSL
:: ASN1 :: BMPString (2) -
OpenSSL
:: ASN1 :: BitString (2) -
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 :: NumericString (2) -
OpenSSL
:: ASN1 :: OctetString (2) -
OpenSSL
:: ASN1 :: PrintableString (2) -
OpenSSL
:: ASN1 :: T61String (2) -
OpenSSL
:: ASN1 :: UTF8String (2) -
OpenSSL
:: ASN1 :: UniversalString (2) -
OpenSSL
:: ASN1 :: VideotexString (2) -
OpenSSL
:: BN (20) - OpenStruct (1)
- OptionParser (31)
- PP (3)
- Pathname (27)
- PrettyPrint (1)
- Prime (3)
-
Prime
:: EratosthenesGenerator (1) -
Prime
:: PseudoPrimeGenerator (2) - Proc (5)
-
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (2) -
RDoc
:: Parser :: Ruby (4) -
REXML
:: Attribute (3) -
REXML
:: Attributes (13) -
REXML
:: CData (3) -
REXML
:: DocType (9) -
REXML
:: Document (5) -
REXML
:: Element (21) -
REXML
:: Elements (8) -
REXML
:: Entity (2) -
REXML
:: Instruction (2) -
REXML
:: Text (5) -
REXML
:: XPath (3) -
Rake
:: Application (5) -
Rake
:: FileList (17) -
Rake
:: FileTask (2) -
Rake
:: InvocationChain (1) -
Rake
:: PackageTask (6) -
Rake
:: TaskArguments (2) -
Rake
:: TestTask (1) - Random (10)
- Range (18)
- Rational (24)
- Regexp (14)
- Resolv (2)
-
Resolv
:: DNS (1) -
Resolv
:: DNS :: Name (1) - Ripper (14)
-
Ripper
:: Filter (3) -
Ripper
:: Lexer (3) - RubyVM (1)
-
RubyVM
:: InstructionSequence (11) - Set (12)
- SignalException (4)
- Socket (3)
- String (99)
- StringIO (20)
- StringScanner (31)
- Struct (14)
- Symbol (3)
-
Syslog
:: Logger (2) - SystemCallError (1)
- Thread (14)
-
Thread
:: Backtrace :: Location (7) -
Thread
:: ConditionVariable (2) -
Thread
:: Queue (7) -
Thread
:: SizedQueue (3) - ThreadGroup (2)
- Time (13)
- TracePoint (11)
- TrueClass (5)
-
URI
:: FTP (1) -
URI
:: MailTo (3) - UnboundMethod (5)
- UncaughtThrowError (1)
- Vector (15)
-
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPServlet :: CGIHandler (1) - WIN32OLE (5)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (3) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIANT (3) -
Zlib
:: GzipWriter (2)
モジュール
- Abbrev (1)
- Base64 (1)
- Benchmark (4)
- BigMath (8)
- CMath (4)
- Comparable (6)
-
ERB
:: Util (4) - Enumerable (113)
- Etc (6)
- Fiddle (6)
-
Fiddle
:: Importer (3) - FileTest (6)
- FileUtils (33)
- GC (4)
-
GC
:: Profiler (4) - Gem (1)
- JSON (7)
-
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 :: TrueClass (1) - Kconv (1)
- Kernel (185)
- LUSolve (1)
- Marshal (6)
- Math (7)
-
Net
:: HTTPHeader (19) - ObjectSpace (14)
- Open3 (1)
- OpenSSL (1)
-
OpenSSL
:: ASN1 (33) -
OpenURI
:: Meta (2) -
OptionParser
:: Arguable (7) - PTY (1)
- Process (5)
- Psych (5)
- RDoc (1)
-
REXML
:: Security (1) -
REXML
:: StreamListener (1) - Rake (3)
-
Rake
:: Cloneable (2) -
Rake
:: TaskManager (7) - RakeFileUtils (2)
- RbConfig (2)
- Readline (1)
- Signal (2)
- TSort (14)
- URI (4)
-
WEBrick
:: Config (1) -
WIN32OLE
:: VARIANT (3) - Zlib (1)
オブジェクト
- ENV (10)
キーワード
- != (1)
- !~ (1)
-
$ $ (1) -
$ & (1) -
$ & # 39; (1) -
$ * (1) -
$ , (1) -
$ -0 (1) -
$ -F (1) -
$ -I (1) -
$ -v (1) -
$ -w (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) -
$ > (1) -
$ ARGV (1) -
$ CHILD _ STATUS (1) -
$ DEFAULT _ INPUT (1) -
$ INPUT _ LINE _ NUMBER (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) -
$ VERBOSE (1) -
$ _ (1) -
$ ` (1) -
$ archdir (1) -
$ hdrdir (1) -
$ libdir (1) -
$ sitearchdir (1) -
$ sitelibdir (1) -
$ srcdir (1) -
$ stderr (1) -
$ stdin (1) -
$ stdout (1) -
$ topdir (1) -
$ ~ (1) - % (1)
- & (3)
- * (3)
- ** (3)
- + (3)
- +@ (1)
- - (3)
-
/ (3) - < (4)
- << (10)
- <= (4)
- <=> (15)
- == (24)
- === (10)
- =~ (4)
- >= (4)
- >> (1)
- ARGV (1)
- Array (1)
- BMPString (2)
-
BUILD
_ RUBY _ PLATFORM (1) - BigDecimal (2)
- BitString (2)
-
CODE
_ CLASS _ TO _ OBJ (1) - Comment (1)
- Complex (2)
- DEFAULT (1)
-
DEFAULT
_ PARAMS (1) - Default (1)
- E (1)
- Entity (1)
- Enumerated (2)
- Float (1)
- GeneralString (2)
- GeneralizedTime (2)
- GraphicString (2)
- Hash (1)
- IA5String (2)
- ISO64String (2)
- Integer (3)
- JSON (1)
-
KNOWN
_ CLASSES (1) -
LEVEL
_ MAP (1) - LIMITS (1)
-
MAJOR
_ VERSION (1) -
MINOR
_ VERSION (1) - Marshal フォーマット (1)
- NKF (1)
- NORMAL (1)
- NumericString (2)
-
OPERATING
_ SYSTEM _ DEFAULTS (1) - OctetString (2)
- PI (1)
-
PLATFORM
_ DEFAULTS (1) - ParseException (1)
- Pretty (1)
- PrintableString (2)
- Proxy (1)
- ROUNDS (1)
-
RUBY
_ FREE (1) -
RUBY
_ PATCHLEVEL (1) -
RUBY
_ PLATFORM (1) -
RUBY
_ RELEASE _ DATE (1) - Rational (1)
- Requirement (1)
- Ruby (1)
- Ruby プログラムの実行 (1)
- Rubyの起動 (1)
-
SCRIPT
_ LINES _ _ (1) - SINGLE (1)
- SSL (1)
- String (1)
- T61String (2)
- TRUE (1)
- Transitive (1)
- TreeBuilder (1)
- UTF8String (2)
- UniversalString (2)
- VERSION (2)
-
VT
_ BSTR (1) -
VT
_ DATE (1) -
VT
_ DISPATCH (1) - VideotexString (2)
- YAMLTree (1)
- [] (21)
- []= (1)
- ^ (3)
-
_ _ callee _ _ (1) -
_ _ method _ _ (1) -
_ dump (2) -
_ load (1) - ` (1)
- abbrev (2)
- abort (2)
-
abort
_ on _ exception (2) - abs (1)
- abs2 (1)
-
absolute
_ path (3) - accept (2)
- add (4)
-
add
_ attribute (2) -
add
_ attributes (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ element (1) -
add
_ field (1) -
add
_ namespace (1) -
add
_ row (1) -
add
_ runtime _ dependency (1) -
alias
_ method (1) - alive? (1)
- all? (2)
-
allocation
_ sourcefile (1) -
allocation
_ sourceline (1) - ancestors (1)
- angle (1)
-
angle
_ with (1) - any? (4)
-
append
_ features (1) - application (1)
- application= (1)
- arg (3)
-
arg
_ config (1) - argv (1)
- array (1)
-
array
_ nl (1) -
as
_ list (1) -
asciicompat
_ encoding (2) - assoc (2)
- at (1)
-
at
_ exit (1) - atan (1)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - attribute (1)
-
attribute
_ of (1) -
attributes
_ of (1) - autoload (2)
- autoload? (2)
- backtrace (1)
-
backtrace
_ locations (3) -
base
_ label (2) - basename (1)
- begin (1)
-
beginning
_ of _ line? (1) - benchmark (1)
- between? (1)
- bigdecimal (1)
- bind (1)
- binding (1)
- binmode (1)
- binread (2)
- binwrite (1)
- birthtime (2)
-
bit
_ length (1) - blksize (1)
-
block
_ given? (1) - blocks (1)
- bm (1)
- body (1)
-
body
_ permitted? (1) - bol? (1)
- broadcast (1)
- bsearch (2)
- build (2)
-
by
_ col _ or _ row (1) -
by
_ col _ or _ row! (1) -
by
_ row (1) -
by
_ row! (1) - bytes (2)
- byteslice (3)
- call (4)
-
callee
_ id (1) - caller (3)
-
caller
_ locations (2) - canonname (1)
- capitalize (1)
- capitalize! (1)
- casecmp (2)
- casefold? (1)
- catch (2)
- cbrt (2)
- cbrt! (1)
- cd (2)
- ceil (5)
- chardev? (1)
- chars (2)
- charset (1)
- chdir (2)
- check (2)
-
check
_ circular? (1) -
check
_ until (1) - children (1)
- chmod (2)
-
chmod
_ R (1) - chomp (1)
- chomp! (1)
- chop (1)
- chop! (1)
- chown (3)
-
chown
_ R (1) - chunk (3)
-
chunk
_ while (1) - chunked? (1)
- civil (1)
-
class
_ eval (1) -
class
_ exec (1) -
class
_ variable _ defined? (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) - cleanpath (1)
- clear (7)
-
clear
_ bit! (1) -
clear
_ exclude (1) - clone (4)
- close (4)
-
close
_ read (1) -
close
_ write (1) - closed? (3)
- cmp (1)
- codepage (1)
- codepoints (1)
- coerce (4)
-
cofactor
_ expansion (1) -
col
_ sep (1) - collect (9)
- collect! (2)
- collect2 (2)
-
collect
_ concat (3) -
collect
_ method (1) - column (2)
-
column
_ vectors (1) - columns (1)
- combination (1)
-
comma
_ breakable (1) - commands (1)
- compact! (1)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) -
compare
_ file (1) - compile (2)
-
compile
_ error (1) -
compile
_ file (1) -
compile
_ option (1) - concat (3)
- configure (1)
- confstr (1)
-
const
_ defined? (1) -
const
_ get (1) - constants (1)
- content (1)
-
content
_ length (1) -
content
_ range (1) -
content
_ type (1) - copy (1)
-
copy
_ stream (2) - correct? (1)
- cos (1)
- count (3)
-
count
_ nodes (1) -
count
_ objects (1) -
count
_ objects _ size (1) -
count
_ tdata _ objects (1) - cover? (1)
- cp (2)
-
cp
_ r (1) - create (1)
-
create
_ makefile (1) - crypt (1)
- cycle (4)
-
datetime
_ format (1) - debug (3)
- debug? (1)
- decode (1)
-
def
_ class (1) -
def
_ method (1) -
def
_ module (1) - default (1)
-
default
_ argv (1) -
default
_ event _ sources (1) -
default
_ external (1) -
default
_ proc (1) -
define
_ finalizer (2) -
define
_ task (1) -
defined
_ class (1) - delete (13)
- delete! (1)
-
delete
_ all (2) -
delete
_ at (1) -
delete
_ attribute (1) -
delete
_ element (1) -
delete
_ if (6) -
delete
_ namespace (1) - denominator (3)
- deq (2)
- detect (2)
- dev (1)
-
dev
_ major (1) -
dev
_ minor (1) - diagonal (1)
- directory? (1)
- dirname (1)
- disable (2)
- disassemble (2)
- divmod (2)
- dlunwrap (1)
- dlwrap (1)
-
do
_ not _ reverse _ lookup (1) -
double
_ fig (1) - downcase! (1)
- downto (1)
- drop (2)
-
drop
_ while (5) - dump (3)
- dup (2)
- each (22)
-
each
_ attribute (1) -
each
_ byte (2) -
each
_ capitalized _ name (1) -
each
_ char (4) -
each
_ child (2) -
each
_ codepoint (3) -
each
_ cons (2) -
each
_ element _ with _ attribute (1) -
each
_ element _ with _ text (1) -
each
_ entry (3) -
each
_ header (1) -
each
_ index (1) -
each
_ line (11) -
each
_ object (2) -
each
_ pair (3) -
each
_ slice (2) -
each
_ strongly _ connected _ component (4) -
each
_ strongly _ connected _ component _ from (4) -
each
_ value (2) -
each
_ with _ index (5) -
each
_ with _ object (2) -
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? (4)
- enable (2)
- encode! (2)
-
encode
_ www _ form _ component (1) - encoding (1)
- end (1)
-
end
_ seen? (1) -
end
_ with? (1) - entities (1)
- entity (2)
-
entity
_ expansion _ limit (1) -
entity
_ expansion _ text _ limit (2) - entitydecl (1)
- entries (2)
-
enum
_ for (2) - eof (1)
- eof? (1)
- eos? (1)
- eql? (16)
- equal? (3)
- erf (1)
- erfc (1)
- error (2)
- error? (1)
-
error
_ bytes (1) - eval (4)
- even? (1)
- event (1)
- exact? (1)
- exception (1)
-
exclude
_ end? (1) -
excluded
_ from _ list? (1) - exec (4)
-
exec
_ format (1) -
executable
_ real? (2) - execute (4)
- exist? (2)
- existing (1)
- existing! (1)
- exists? (1)
- exit (1)
- exit! (1)
- exp (1)
- ext (1)
-
external
_ encoding (1) -
external
_ id (1) - extname (1)
- extract (2)
- fail (3)
-
family
_ addrinfo (2) - fatal (2)
- fatal? (1)
- fcntl (1)
- fdiv (3)
- feed (1)
- fetch (1)
- field (1)
- field? (1)
-
field
_ row? (1) -
field
_ size _ limit (1) - file (1)
- filename (4)
- filename= (1)
- fileno (2)
- fill (6)
- filter (3)
- find (2)
-
find
_ all (3) -
find
_ index (8) - finish (1)
- first (4)
-
first
_ lineno (1) -
fixed
_ encoding? (1) -
flat
_ map (3) - flatten (2)
- flatten! (1)
- flock (1)
- floor (6)
- fnmatch (2)
- fnmatch? (1)
- force (1)
-
force
_ encoding (1) -
force
_ quotes? (1) - foreach (5)
- fork (2)
- format (2)
-
formatted
_ program _ filename (1) - formatter (1)
- free (1)
- freeze (2)
- frexp (1)
- friday? (1)
-
from
_ yaml (1) - frozen? (1)
- ftype (2)
- gamma (1)
-
garbage
_ collect (2) - gcdlcm (1)
- gem (1)
- generate (1)
-
generate
_ line (1) - get (2)
- get2 (2)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ byte (1) -
get
_ fields (1) -
get
_ text (1) - getaddress (1)
- getaddrinfo (1)
- getbyte (4)
- getc (2)
- getch (1)
- getlogin (1)
- getname (1)
- getopts (1)
- gets (5)
- gid (1)
- glob (4)
-
global
_ variables (1) - grep (3)
-
grep
_ v (2) -
group
_ by (2) - grpowned? (2)
- gsub (4)
- gsub! (4)
- h (1)
- handler= (1)
-
has
_ elements? (1) - hash (1)
-
have
_ framework (2) - head (1)
- head2 (2)
- header (2)
- header? (1)
-
header
_ row? (2) - headers (3)
- help (2)
- helpfile (1)
- home (2)
-
html
_ escape (1) - httpd (1)
- i (1)
- imag (1)
- imaginary (1)
- import (1)
- include? (5)
- included (1)
-
incomplete
_ input? (1) - index (7)
- info (2)
- info? (1)
- inherited (1)
- initialize (1)
- inject (3)
- ino (1)
-
inplace
_ mode (1) - insert (2)
-
insert
_ output (1) - inspect (9)
- install (3)
-
install
_ rb (1) -
instance
_ eval (1) -
instance
_ methods (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - integer? (1)
- intern (2)
-
internal
_ encoding (2) - invkind (1)
- irb (1)
-
is
_ a? (1) - iseuc (1)
- isjis (1)
- iterator? (1)
- j (1)
- jj (1)
- join (1)
-
json
_ creatable? (1) -
keep
_ if (1) - key? (2)
-
kind
_ of? (1) - label (2)
- lambda (2)
- lambda? (1)
-
laplace
_ expansion (1) - last (4)
-
last
_ comment (1) -
last
_ description (1) -
last
_ error (1) -
last
_ match (2) -
last
_ modified (1) -
latest
_ gc _ info (1) - lazy (2)
- lchmod (1)
- lchown (1)
- lcm (1)
- length (9)
- level (1)
- lex (2)
- lgamma (1)
-
lib
_ dirs _ for (1) - limit (1)
- line (1)
- lineno (3)
- lines (4)
- link (1)
- list (2)
- ljust (1)
- ln (2)
-
ln
_ s (1) - load (4)
-
load
_ specification (1) -
load
_ stream (2) - local (2)
-
local
_ address (1) -
local
_ variable _ defined? (1) -
local
_ variable _ get (1) -
local
_ variables (2) -
locale
_ charmap (1) - log (3)
- lookup (1)
- loop (2)
- lstrip (1)
- lstrip! (1)
- lup (1)
-
lup
_ decomposition (1) - lusolve (1)
- magnitude (2)
-
main
_ type (1) - makedirs (1)
- malloc (1)
- map (9)
- map! (2)
-
marshal
_ dump (3) -
marshal
_ load (3) - match (5)
- match? (1)
- matched (1)
- matched? (1)
-
matched
_ size (1) - matches? (1)
- max (6)
-
max
_ by (4) - measure (1)
- member? (5)
- members (2)
-
memsize
_ of _ all (1) - merge (3)
- merge! (2)
-
method
_ id (1) -
method
_ removed (1) - methods (1)
- min (6)
-
min
_ by (4) - minmax (2)
-
minmax
_ by (2) - minor (2)
- mkdir (2)
-
mkdir
_ p (1) - mkmf (1)
- mkpath (1)
- mktime (2)
-
mod
_ add (1) -
mod
_ exp (1) -
mod
_ inverse (1) -
mod
_ mul (1) -
mod
_ sub (1) - mode (3)
-
module
_ eval (1) -
module
_ exec (1) - modulo (3)
- move (1)
- mv (2)
- name (3)
-
name
_ list (1) - namespace (2)
- namespaces (2)
-
need
_ tar (1) -
need
_ tar _ bz2 (1) -
need
_ tar _ gz (1) -
need
_ zip (1) - needed? (1)
- new (75)
-
next
_ element (1) -
next
_ values (1) - nlink (1)
- none? (3)
- nonzero? (2)
- norm (1)
- normalize (1)
-
nowrite
_ flag (1) -
num
_ bits (1) -
num
_ bytes (1) - numerator (3)
-
object
_ nl (1) - odd? (1)
- offset (2)
-
ole
_ query _ interface (1) - on (12)
-
on
_ head (1) -
on
_ tail (1) - one? (2)
- open (8)
- order! (4)
-
original
_ dir (2) -
original
_ name (2) - owner (2)
- p (1)
- pack (1)
- pack テンプレート文字列 (1)
-
package
_ files (1) - parse (6)
- parse! (2)
-
parse
_ line (1) -
parse
_ stream (2) - partition (2)
- path (5)
- pathconf (1)
- pathmap (1)
-
peek
_ result (1) -
peek
_ values (1) - permutation (2)
- permute! (2)
- phase (1)
- pid (1)
- pipeline (1)
- polar (3)
- pop (3)
- post (2)
- post2 (2)
-
post
_ match (1) - pow (1)
- pp (1)
-
pre
_ match (1) - prefix (1)
- prefixes (2)
- prepend (1)
-
prepend
_ features (1) - prepended (1)
- prerelease? (2)
-
pretty
_ generate (1) -
pretty
_ print (1) -
pretty
_ print _ cycle (1) -
pretty
_ unparse (1) -
prev
_ float (1) - prime? (1)
-
prime
_ division (1) -
prime
_ fasttest? (1) -
primitive
_ convert (4) - print (4)
- printf (3)
- private (1)
-
private
_ class _ method (1) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) - proc (2)
- product (2)
- progname (1)
-
prompt
_ mode (1) -
proper
_ subset? (1) -
proper
_ superset? (1) -
protected
_ method _ defined? (1) -
psych
_ y (1) - public (1)
-
public
_ send (2) - push (2)
- putc (1)
- puts (3)
- quo (3)
- raise (3)
- rakefile (1)
- rand (8)
- range (1)
-
range
_ length (1) - rassoc (2)
- rationalize (9)
-
raw
_ data (1) - rdev (1)
-
rdev
_ major (1) -
rdev
_ minor (1) -
reachable
_ objects _ from (1) - read (4)
-
read
_ body (1) - readable? (2)
-
readable
_ real? (1) - readbyte (1)
- readchar (1)
- readline (4)
- readlines (10)
- readlink (1)
- real (3)
- real? (3)
- realdirpath (1)
- realpath (3)
- realtime (1)
- rect (2)
- rectangular (4)
- reduce (3)
- refine (1)
- regular? (1)
- rehash (1)
- reject (7)
- reject! (7)
- relative? (1)
-
relative
_ path _ from (1) - release (2)
- reload (1)
- remainder (1)
- remove (1)
-
remove
_ class _ variable (1) -
remove
_ const (1) -
remove
_ entry (1) -
remove
_ instance _ variable (1) -
remove
_ method (1) - rename (1)
- reopen (3)
-
repeated
_ combination (1) -
repeated
_ permutation (1) - replace (4)
- replacement (1)
- replacement= (1)
- replicate (1)
- report (1)
-
request
_ body _ permitted? (1) -
request
_ get (2) -
request
_ head (2) -
request
_ post (2) - require (2)
-
require
_ relative (1) - reset (1)
- resolve (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) -
response
_ body _ permitted? (1) - rest? (1)
- restore (2)
- result (3)
- resume (1)
-
return
_ headers? (1) -
return
_ value (1) - reverse! (2)
-
reverse
_ each (3) - rewind (3)
-
rexml
/ document (1) -
rexml
/ parsers / pullparser (1) -
rexml
/ parsers / sax2parser (1) -
rexml
/ parsers / streamparser (1) -
rexml
/ parsers / ultralightparser (1) - rindex (3)
- rm (2)
-
rm
_ r (1) - rmdir (3)
- root (1)
- root? (1)
-
root
_ node (1) - rotate! (1)
- round (6)
- row (2)
- rshift! (1)
- rstrip! (1)
-
rubygems
/ commands / help _ command (1) -
rubygems
/ commands / lock _ command (1) - run (2)
-
safe
_ level (1) - sample (4)
-
satisfied
_ by? (1) - saturday? (1)
- scalar (1)
- scan (3)
-
scan
_ full (1) -
scan
_ until (1) - scrub (1)
- scrub! (1)
-
search
_ full (1) - seek (1)
- select (8)
- select! (3)
- self (1)
-
send
_ request (1) - seplist (1)
-
set
_ backtrace (1) -
set
_ range (1) -
set
_ trace _ func (2) - setproctitle (1)
- setproperty (2)
-
sev
_ threshold (1) - sexp (1)
-
sexp
_ raw (1) -
sharing
_ detection (1) - shift (3)
- shuffle (2)
- shuffle! (2)
- signal (1)
- signm (1)
- signo (1)
- sin (1)
-
singleton
_ method _ removed (1) -
singleton
_ methods (1) - size (15)
- size? (2)
- skip (2)
-
skip
_ until (1) - sleep (3)
- slice (10)
- slice! (9)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - solve (1)
- sort (2)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (1) -
source
_ location (3) - spawn (4)
- specific? (1)
- split (5)
- sprintf (1)
- sqrt (3)
- sqrt! (1)
- squeeze! (1)
- srand (2)
-
stand
_ alone? (1) - start (4)
-
start
_ with? (1) - stat (1)
- step (7)
- stop (1)
- stop? (1)
- store (2)
- strftime (1)
- strip! (1)
-
strongly
_ connected _ components (2) - struct (1)
- sub (4)
- sub! (3)
-
sub
_ ext (1) -
sub
_ type (1) -
subdomain
_ of? (1) - subsec (1)
- subset? (1)
- subtract (1)
- sum (2)
- summarize (2)
-
super
_ method (1) - superclass (1)
- superset? (1)
- swapcase! (1)
- symlink (1)
-
synthesize
_ file _ task (1) - syscall (1)
- sysconf (1)
- sysconfdir (1)
- system (5)
- systmpdir (1)
- table (1)
- take (2)
-
take
_ while (6) - target (1)
- tcp (2)
- tell (2)
- terminate (1)
- test (2)
- text (1)
-
thread
_ variable _ set (1) - throw (1)
- thursday? (1)
- timeout (2)
- times (1)
-
to
_ a (6) -
to
_ ary (2) -
to
_ bn (1) -
to
_ c (2) -
to
_ csv (1) -
to
_ d (2) -
to
_ enum (2) -
to
_ f (3) -
to
_ h (2) -
to
_ i (6) -
to
_ int (1) -
to
_ json (12) -
to
_ mailtext (1) -
to
_ path (1) -
to
_ proc (2) -
to
_ ptr (1) -
to
_ r (7) -
to
_ rfc822text (1) -
to
_ s (17) -
to
_ set (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 (1)
- tr (2)
-
tr
_ s (1) -
tr
_ s! (1) - trace (1)
-
trace
_ var (3) - trap (2)
- truncate (8)
- trust (1)
-
try
_ convert (4) -
try
_ lock (1) - tsort (1)
-
tsort
_ each (3) - typelibs (1)
- u (1)
- ucmp (1)
- uid (1)
- umask (2)
- uname (1)
-
unconverted
_ fields? (1) -
undefine
_ finalizer (1) - ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - union (1)
- uniq (2)
- uniq! (2)
- unknown (2)
- unlink (3)
- unnormalize (1)
- unpack (1)
- unparse (1)
- unscan (1)
- unshift (1)
-
untrace
_ var (1) - untrust (1)
- untrusted? (1)
- upcase! (1)
- update (2)
- upto (1)
- uptodate? (1)
-
url
_ encode (1) -
urlsafe
_ encode64 (1) -
use
_ readline (1) -
use
_ readline? (1) - utime (1)
-
valid
_ encoding? (1) - value (5)
- value= (1)
- values (1)
-
values
_ at (4) - ver (1)
-
verbose
_ flag (1) - version (1)
- wait (1)
- wait2 (1)
-
wait
_ readable (1) -
wait
_ writable (1) - waitpid (1)
- waitpid2 (1)
- wakeup (1)
- warn (4)
- warn? (1)
- warning (2)
-
win
_ platform? (1) -
with
_ defaults (1) -
with
_ index (1) -
world
_ readable? (2) -
world
_ writable? (2) - writable? (2)
-
writable
_ real? (1) - write (2)
-
write
_ headers? (1) - xmlrpc (1)
- xmp (1)
- xpath (1)
- y (1)
- yaml (1)
- yield (3)
- zero (1)
- zero? (5)
- zip (6)
- | (3)
- ~ (1)
- 制御構造 (1)
- 正規表現 (1)
検索結果
先頭5件
-
Gem
:: Platform :: RUBY -> String (81952.0) -
Pure Ruby の Gem はバイナリファイルをビルドするために Gem::Specification#extensions を使用する可能性があります。
Pure Ruby の Gem はバイナリファイルをビルドするために Gem::Specification#extensions
を使用する可能性があります。 -
Gem
:: Requirement # prerelease? -> bool (73219.0) -
何らかのバージョンがプレリリースのものであれば、true を返します。
何らかのバージョンがプレリリースのものであれば、true を返します。
//emlist[][ruby]{
p Gem::Requirement.new("< 5.0").prerelease? # => false
p Gem::Requirement.new("< 5.0a").prerelease? # => true
//} -
Comparable
# >(other) -> bool (72955.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が正の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
比較演算子 <=> をもとにオブジェクト同士を比較します。
<=> が正の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 > 0 # => true
1 > 1 # => false
//} -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (65167.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
引数 file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file ファイル名を文字列で指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::Instr... -
Module
# >(other) -> bool | nil (64327.0) -
比較演算子。 self が other の先祖である場合、true を返します。 self が other の子孫か同一クラスである場合、false を返します。
比較演算子。 self が other の先祖である場合、true を返します。
self が other の子孫か同一クラスである場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
@see Module#<
//emlist[例][ruby]{
module Awesome; end
module Included
include Awesome
end
module Prepended
... -
File
:: Stat # readable _ real? -> bool (64219.0) -
実ユーザ/実グループによって読み込み可能な時に真を返します。
実ユーザ/実グループによって読み込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).readable_real? #=> true
//} -
Integer
# >(other) -> bool (63955.0) -
比較演算子。数値として大きいか判定します。
比較演算子。数値として大きいか判定します。
@param other 比較対象の数値
@return self よりも other の方が小さい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 > 0 # => true
1 > 1 # => false
//} -
Float
# >(other) -> bool (63937.0) -
比較演算子。数値として大きいか判定します。
比較演算子。数値として大きいか判定します。
@param other 比較対象の数値
@return self よりも other の方が小さい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 > 3.1415 # => false
3.14 >= 3.1415 # => false
//} -
OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString (57367.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
Kernel
. # require _ relative(relative _ feature) -> bool (56437.0) -
現在のファイルからの相対パスで require します。
現在のファイルからの相対パスで require します。
require File.expand_path(relative_feature, File.dirname(__FILE__))
とほぼ同じです。
Kernel.#eval などで文字列を評価した場合に、そこから
require_relative を呼出すと必ず失敗します。
@param relative_feature ファイル名の文字列です。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load のスコープ
ローカル変数... -
OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (56167.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
Object
:: RUBY _ PATCHLEVEL -> Integer (55306.0) -
Ruby のパッチレベルを表す Integer オブジェクトです。
Ruby のパッチレベルを表す Integer オブジェクトです。
パッチレベルはRubyの各バージョンに対するバグ修正パッチの適用をカウントしています。
teeny リリースのそれぞれについてパッチレベルは 0 から始まり、
その teeny リリースに対してバグ修正パッチが適用される度に増えていきます。
パッチレベルという概念および RUBY_PATCHLEVEL 定数は、 Ruby 1.8.5-p1 以降、 1.8.6 以降で導入されました。
1.8.5やそれ以前のバージョンでは定義されていません。 -
Fiddle
:: BUILD _ RUBY _ PLATFORM -> String (55270.0) -
ビルドに用いた ruby のプラットフォームを表す文字列。
ビルドに用いた ruby のプラットフォームを表す文字列。
通常、Object::RUBY_PLATFORM と同じ。 -
Object
:: RUBY _ RELEASE _ DATE -> String (55252.0) -
Ruby のリリース日を表す文字列。
Ruby のリリース日を表す文字列。 -
Object
:: RUBY _ PLATFORM -> String (55204.0) -
プラットフォームを表す文字列。
プラットフォームを表す文字列。 -
Readline
. # readline(prompt = "" , add _ hist = false) -> String | nil (54973.0) -
prompt を出力し、ユーザからのキー入力を待ちます。 エンターキーの押下などでユーザが文字列を入力し終えると、 入力した文字列を返します。 このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。 何も入力していない状態で EOF(UNIX では ^D) を入力するなどで、 ユーザからの入力がない場合は nil を返します。
prompt を出力し、ユーザからのキー入力を待ちます。
エンターキーの押下などでユーザが文字列を入力し終えると、
入力した文字列を返します。
このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。
何も入力していない状態で EOF(UNIX では ^D) を入力するなどで、
ユーザからの入力がない場合は nil を返します。
本メソッドはスレッドに対応しています。
入力待ち状態のときはスレッドコンテキストの切替えが発生します。
入力時には行内編集が可能で、vi モードと Emacs モードが用意されています。
デフォルトは Emacs モードです。
... -
WEBrick
:: HTTPServlet :: CGIHandler :: Ruby -> String (54952.0) -
Ruby のパスを返します。
Ruby のパスを返します。 -
Vector
# r -> Float (54922.0) -
ベクトルの大きさ(ノルム)を返します。
ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (54901.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2 -
rexml
/ parsers / streamparser (54163.0) -
ストリーム式の XML パーサ。
ストリーム式の XML パーサ。
rexml の XML パーサの中では高速ですが、機能は限定的です。
もう少し高機能なストリーム式パーサが必要な場合は
REXML::Parsers::SAX2Parser を用いてください。
パーサからはコールバックによってパースした情報を受け取ります。
REXML::StreamListener を include し、
必要なメソッドをオーバーライドしたクラスのオブジェクトを
コールバックオブジェクトとして REXML::Parsers::StreamParser.new
に渡します。
REXML::Parsers::StreamParser#pa... -
rubygems
/ commands / help _ command (54037.0) -
Gem コマンドに関するヘルプを提供するためのライブラリです。
Gem コマンドに関するヘルプを提供するためのライブラリです。
Usage: gem help ARGUMENT [options]
Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
... -
rubygems
/ commands / lock _ command (54037.0) -
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために
必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
Usage: gem lock GEMNAME-VERSION [GEMNAME-VERSION ...] [options]
Options:
-s, --[no-]strict 依存関係を満たせない場合に失敗します
Common Options:
-h, --help このコマンドのヘルプを表示します
... -
OpenSSL
:: ASN1 . # NumericString(value) -> OpenSSL :: ASN1 :: NumericString -> OpenSSL :: ASN1 :: NumericString (47767.0) -
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::NumericString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # NumericString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: NumericString (46867.0) -
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の NumericString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::NumericString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (46567.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数 file の絶対パスファイル名を文字列で指定します。
@param line 引数 source の 1 行目の行番号を指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
... -
Rational
# rationalize(eps = 0) -> Rational (46291.0) -
自身から eps で指定した許容誤差の範囲に収まるような Rational を返 します。
自身から eps で指定した許容誤差の範囲に収まるような Rational を返
します。
eps を省略した場合は self を返します。
@param eps 許容する誤差
//emlist[例][ruby]{
r = Rational(5033165, 16777216)
r.rationalize # => (5033165/16777216)
r.rationalize(Rational(0.01)) # => (3/10)
r.rationalize(Rational(0.1)) # => (1/3)
//} -
Process
. # setproctitle(title) -> String (46267.0) -
ps(1) が出力する現在実行中の Ruby スクリプトの名前を引数 title で指定した文字列に変更します。
ps(1) が出力する現在実行中の Ruby スクリプトの名前を引数 title
で指定した文字列に変更します。
OS によっては何も行われません。また、処理結果に関係なく例外は発生しませ
ん。サポートされる OS ではない場合であっても NotImplementedError
が発生する事はありません。本メソッドを実行しても $0 への影響はあ
りません。
Process.setproctitle('myapp: worker #%d' % worker_id)
本メソッドは 2.1 以降でグローバル変数を用いないで現在実行中の Ruby スク
リプトの名前を表す文字列を設定す... -
String
# lstrip -> String (46267.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 -
Addrinfo
# family _ addrinfo(host , port) -> Addrinfo (46255.0) -
引数から自身に「似た」Addrinfo オブジェクトを生成します。
引数から自身に「似た」Addrinfo オブジェクトを生成します。
「似た」の意味はプロトコルファミリ、ソケットタイプ、プロトコルが
同じことを意味します。
require 'socket'
Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)>
Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")... -
Addrinfo
# family _ addrinfo(path) -> Addrinfo (46255.0) -
引数から自身に「似た」Addrinfo オブジェクトを生成します。
引数から自身に「似た」Addrinfo オブジェクトを生成します。
「似た」の意味はプロトコルファミリ、ソケットタイプ、プロトコルが
同じことを意味します。
require 'socket'
Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)>
Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")... -
Class
# superclass -> Class | nil (46237.0) -
自身のスーパークラスを返します。
自身のスーパークラスを返します。
//emlist[例][ruby]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.supercl... -
WIN32OLE
# ole _ query _ interface(iid) -> WIN32OLE (46237.0) -
IID(インターフェイスID)を指定してオブジェクトの別のインターフェイスを 持つオブジェクトを取得します。
IID(インターフェイスID)を指定してオブジェクトの別のインターフェイスを
持つオブジェクトを取得します。
オブジェクトが複数のオートメーション用インターフェイスを持つ場合に、当
メソッドを利用して既定のインターフェイスとは異なるインターフェイスを取
得します。
@param iid 取得するインターフェイスのIIDを文字列で指定します。
@return iidパラメータで指定したインターフェイスを持つWIN32OLEオブジェクト
@raise WIN32OLERuntimeError 指定したIIDをオブジェクトが持たない場合に通知されます。
ie = WIN32OLE.n... -
Enumerable
# drop _ while {|element| . . . } -> Array (46219.0) -
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、 残りの要素を配列として返します。
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、
残りの要素を配列として返します。
ブロックを指定しなかった場合は、Enumerator を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
//} -
FileTest
. # executable _ real?(file) -> bool (46219.0) -
ファイルがカレントプロセスの実ユーザか実グループで実行できる時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルがカレントプロセスの実ユーザか実グループで実行できる時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
//emlist[例][ruby]{
IO.write("empty.txt", "")
File.chmod(0744, "empty.txt")
FileTest.executable_real?("empty.txt") # => true
File.chmod(0644, "empty.txt")
FileTest.ex... -
FileTest
. # readable?(file) -> bool (46219.0) -
ファイルがカレントプロセスにより読み込み可能な時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルがカレントプロセスにより読み込み可能な時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
//emlist[例][ruby]{
IO.write("testfile", "")
File.chmod(0644, "testfile")
FileTest.readable?("testfile") # => true
File.chmod(0200, "testfile")
FileTest.readable?("testfile"... -
FileTest
. # writable?(file) -> bool (46219.0) -
ファイルがカレントプロセスにより書き込み可能である時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルがカレントプロセスにより書き込み可能である時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
//emlist[例][ruby]{
IO.write("testfile", "test")
File.chmod(0600, "testfile")
FileTest.writable?("testfile") # => true
File.chmod(0400, "testfile")
FileTest.writable?("tes... -
Float
# floor -> Integer (46219.0) -
自身と等しいかより小さな整数のうち最大のものを返します。
自身と等しいかより小さな整数のうち最大のものを返します。
//emlist[例][ruby]{
1.2.floor # => 1
2.0.floor # => 2
(-1.2).floor # => -2
(-2.0).floor # => -2
//}
@see Numeric#ceil, Numeric#round, Float#truncate -
Float
# prev _ float -> Float (46219.0) -
浮動小数点数で表現可能な self の前の値を返します。
浮動小数点数で表現可能な self の前の値を返します。
(-Float::MAX).prev_float と (-Float::INFINITY).prev_float
は -Float::INFINITY を返します。Float::NAN.prev_float は
Float::NAN を返します。
//emlist[例][ruby]{
p 0.01.prev_float # => 0.009999999999999998
p 1.0.prev_float # => 0.9999999999999999
p 100.0.prev_float # => 99.9999999999... -
Gem
:: Version # prerelease? -> bool (46219.0) -
self がプレリリースと思われる文字を含むバージョンかどうかを返します。
self がプレリリースと思われる文字を含むバージョンかどうかを返します。
//emlist[例][ruby]{
Gem::Version.new('1.2.0a').prerelease? # => true
Gem::Version.new('1.2.0').prerelease? # => false
//}
@see Gem::Version#release -
Module
# class _ variables(inherit = true) -> [Symbol] (46219.0) -
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
@param inherit false を指定しない場合はスーパークラスやインクルードして
いるモジュールのクラス変数を含みます。
//emlist[例][ruby]{
class One
@@var1 = 1
end
class Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_variables # => [:@@var2, :@@var1]
Two.class_va... -
Module
# prepend _ features(mod) -> self (46219.0) -
Module#prepend から呼び出されるメソッドで、 prepend の処理の実体です。このメソッド自体は mod で指定した モジュール/クラスの継承チェインの先頭に self を追加します。
Module#prepend から呼び出されるメソッドで、
prepend の処理の実体です。このメソッド自体は mod で指定した
モジュール/クラスの継承チェインの先頭に self を追加します。
このメソッドを上書きすることで、prepend の処理を変更したり
追加したりすることができます。
@param mod prepend を呼び出したモジュール
@return mod が返されます
//emlist[例][ruby]{
class Recorder
RECORDS = []
end
module X
def self.prepend_features(mod)
... -
RubyVM
:: DEFAULT _ PARAMS -> {Symbol => Integer} (46219.0) -
RubyVM のデフォルトのパラメータを返します。
RubyVM のデフォルトのパラメータを返します。
[注意] この値は C Ruby 固有のものです。変更しても RubyVM の動作に
は影響しません。また、仕様は変更される場合があるため、この値に依存すべ
きではありません。 -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (46219.0) -
node から到達可能な強連結成分についてのイテレータです。
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) {|nodes| . . . } -> () (46219.0) -
node から到達可能な強連結成分についてのイテレータです。
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node... -
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) -> Enumerator (46219.0) -
node から到達可能な強連結成分についてのイテレータです。
node から到達可能な強連結成分についてのイテレータです。
引数 node と each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param each_child 引数で与えられた頂点の子をそれぞれ評価するcallメソッ
ドを持つオブジェクトを指定します。
//emlist[使用例][ruby]{
req... -
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) {|nodes| . . . } -> () (46219.0) -
node から到達可能な強連結成分についてのイテレータです。
node から到達可能な強連結成分についてのイテレータです。
引数 node と each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param each_child 引数で与えられた頂点の子をそれぞれ評価するcallメソッ
ドを持つオブジェクトを指定します。
//emlist[使用例][ruby]{
req... -
String
# lstrip! -> self | nil (45967.0) -
文字列の先頭にある空白文字を全て破壊的に取り除きます。 空白文字の定義は " \t\r\n\f\v\0" です。
文字列の先頭にある空白文字を全て破壊的に取り除きます。
空白文字の定義は " \t\r\n\f\v\0" です。
lstrip! は self を変更して返します。
ただし取り除く空白がなかったときは nil を返します。
//emlist[例][ruby]{
str = " abc"
p str.lstrip! # => "abc"
p str # => "abc"
str = "abc"
p str.lstrip! # => nil
p str # => "abc"
//} -
Fiddle
:: RUBY _ FREE -> Integer (45952.0) -
ruby_xfree の関数ポインタのアドレスの値。
ruby_xfree の関数ポインタのアドレスの値。 -
DRb
:: DRbUnknown # reload -> object (45949.0) -
保持しているマーシャリングされたオブジェクトをRubyのオブジェクトに 変換しようと試みます。
保持しているマーシャリングされたオブジェクトをRubyのオブジェクトに
変換しようと試みます。
DRbUnknown オブジェクトを受け取った後に対応するクラスが定義された場合、
このメソッドでそのクラスのオブジェクトに変換できます。
変換を試みて失敗した場合は DRbUnknown オブジェクトを返します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (45937.0) -
self が表す命令シーケンスの絶対パスを返します。
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.... -
RubyVM
:: InstructionSequence # base _ label -> String (45937.0) -
self が表す命令シーケンスの基本ラベルを返します。
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "h... -
RubyVM
:: InstructionSequence # label -> String (45937.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R... -
CSV
:: Row # field _ row? -> bool (45919.0) -
フィールド行であれば真を返します。そうでなければ偽を返します。
フィールド行であれば真を返します。そうでなければ偽を返します。
//emlist[例][ruby]{
require "csv"
header_row = CSV::Row.new(["header1", "header2"], [], true)
row = CSV::Row.new(["header1", "header2"], [1, 2])
header_row.field_row? # => false
row.field_row? # => true
//} -
Enumerable
# drop _ while -> Enumerator (45919.0) -
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、 残りの要素を配列として返します。
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、
残りの要素を配列として返します。
ブロックを指定しなかった場合は、Enumerator を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
//} -
File
. world _ readable?(path) -> Integer | nil (45919.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m # => "644"
//} -
File
. world _ writable?(path) -> bool (45919.0) -
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//} -
File
:: Stat # executable _ real? -> bool (45919.0) -
実ユーザ/グループIDで実行できる時に真を返します。
実ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable_real?
#例
#=> true
//} -
File
:: Stat # readable? -> bool (45919.0) -
読み込み可能な時に真を返します。
読み込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).readable? #=> true
//} -
File
:: Stat # world _ readable? -> Integer | nil (45919.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから読めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//} -
File
:: Stat # world _ writable? -> Integer | nil (45919.0) -
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/tmp").world_writable? # => 511
sprintf("%o", m) # => "777"
//} -
File
:: Stat # writable? -> bool (45919.0) -
書き込み可能な時に真を返します。
書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable? #=> true
//} -
File
:: Stat # writable _ real? -> bool (45919.0) -
実ユーザ/実グループによって書き込み可能な時に真を返します。
実ユーザ/実グループによって書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable_real? #=> true
//} -
Gem
:: Version # marshal _ dump -> Array (45919.0) -
完全なオブジェクトではなく、バージョン文字列のみダンプします。
完全なオブジェクトではなく、バージョン文字列のみダンプします。
//emlist[][ruby]{
p Gem::Version.new('1.2.0a').marshal_dump # => ["1.2.0a"]
//} -
Gem
:: Version # marshal _ load(array) -> nil (45919.0) -
ダンプされた情報をロードし、自身を破壊的に変更します。
ダンプされた情報をロードし、自身を破壊的に変更します。
//emlist[][ruby]{
version = Gem::Version.new('')
version.marshal_load(["1.2.0a"])
p version # => #<Gem::Version "1.2.0a">
//}
@param array バージョン情報を含む配列を指定します。 -
Module
# class _ variable _ defined?(name) -> bool (45919.0) -
name で与えられた名前のクラス変数がモジュールに存在する場合 true を 返します。
name で与えられた名前のクラス変数がモジュールに存在する場合 true を
返します。
@param name Symbol か String を指定します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
Fred.class_variable_defined?(:@@foo) #=> true
Fred.class_variable_defined?(:@@bar) #=> false
Fred.class_variable_defined?('@@foo') #=> true
Fred.class_variable... -
Module
# class _ variable _ get(name) -> object (45919.0) -
クラス/モジュールに定義されているクラス変数 name の値を返します。
クラス/モジュールに定義されているクラス変数 name の値を返します。
@param name String または Symbol を指定します。
@raise NameError クラス変数 name が定義されていない場合、発生します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
def Fred.foo
class_variable_get(:@@foo)
end
p Fred.foo #=> 99
//} -
Module
# class _ variable _ set(name , val) -> object (45919.0) -
クラス/モジュールにクラス変数 name を定義して、その値として val をセットします。val を返します。
クラス/モジュールにクラス変数 name を定義して、その値として
val をセットします。val を返します。
@param name String または Symbol を指定します。
//emlist[例][ruby]{
class Fred
@@foo = 99
def foo
@@foo
end
end
def Fred.foo(val)
class_variable_set(:@@foo, val)
end
p Fred.foo(101) # => 101
p Fred.new.foo # => 101
//} -
Module
# remove _ class _ variable(name) -> object (45919.0) -
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ れていた値を返します。
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ
れていた値を返します。
@param name String または Symbol を指定します。
@return 引数で指定されたクラス変数に設定されていた値を返します。
@raise NameError 引数で指定されたクラス変数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
class Foo
@@foo = 1
remove_class_variable(:@@foo) # => 1
p @@foo # => uninitialized clas... -
Rake
:: Application # rakefile -> String (45919.0) -
実際に使用されている Rakefile の名前を返します。
実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//} -
Rake
:: FileList # clear _ exclude -> self (45919.0) -
登録されている除外リストをクリアします。
登録されている除外リストをクリアします。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test.rb", "test.bak")
file_list.exclude("test.rb")
# DEFAULT_IGNORE_PATTERNS と "test.rb" の双方の除外がクリアされる
file_list.clear_exclude
file_list # => ["test.r... -
WIN32OLE
_ EVENT # handler=(obj) -> () (45919.0) -
イベント処理を実行するオブジェクトを登録します。
イベント処理を実行するオブジェクトを登録します。
イベントハンドラをメソッドとして持つオブジェクトをイベントハンドラとし
て登録します。
イベントハンドラはイベント名に「on」を前置します。もし、イベントに対応
するonメソッドが実装されていなければmethod_missingが呼ばれます。イベン
ト名は大文字小文字を区別するため、正確な記述が必要です。
@param obj イベントに対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。
class IeHandler
def initialize
@com... -
RDoc
:: Parser :: Ruby :: NORMAL -> " :: " (45901.0) -
RDoc::NormalClass type
RDoc::NormalClass type -
Thread
# thread _ variable _ set(key , value) (45637.0) -
引数 key で指定した名前のスレッドローカル変数に引数 value をセットしま す。
引数 key で指定した名前のスレッドローカル変数に引数 value をセットしま
す。
[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)と
異なり、セットした変数は Fiber を切り替えても共通で使える事に注意してく
ださい。
//emlist[例][ruby]{
thr = Thread.new do
Thread.current.thread_variable_set(:cat, 'meow')
Thread.current.thread_variable_set("dog", 'woof')
end
thr.join ... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (45619.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返
します。
//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructi... -
RubyVM
:: InstructionSequence # eval -> object (45601.0) -
self の命令シーケンスを評価してその結果を返します。
self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3 -
OpenSSL
:: ASN1 . # GeneralString(value) -> OpenSSL :: ASN1 :: GeneralString -> OpenSSL :: ASN1 :: GeneralString (38467.0) -
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # GeneralizedTime(value) -> OpenSSL :: ASN1 :: GeneralizedTime -> OpenSSL :: ASN1 :: GeneralizedTime (38467.0) -
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralizedTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # UniversalString(value) -> OpenSSL :: ASN1 :: UniversalString -> OpenSSL :: ASN1 :: UniversalString (38467.0) -
ASN.1 の UniversalString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の UniversalString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UniversalString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
REXML
:: Element # delete _ element(element) -> REXML :: Element (37819.0) -
子要素を削除します。
子要素を削除します。
element で削除する要素を指定できます。整数、文字列、REXML::Element
オブジェクトのいずれかが指定できます。
REXML::Element を指定すると、その要素が削除されます。
整数を指定すると、element 番目の要素を削除します(1-originで指定します)。
文字列を指定すると、XPath としてマッチする要素を削除します。
複数の要素がマッチする場合はそのうち1つが削除されます。
@param element 削除する要素
@see REXML::Elements#delete
//emlist[][ruby]{
require... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (37819.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]... -
Kernel
. # require(feature) -> bool (37603.0) -
Ruby ライブラリ feature をロードします。拡張子補完を行い、 同じファイルの複数回ロードはしません。
Ruby ライブラリ feature をロードします。拡張子補完を行い、
同じファイルの複数回ロードはしません。
feature が絶対パスのときは feature からロードします。
feature が相対パスのときは組み込み変数 $:
に示されるパスを順番に探し、最初に見付かったファイルを
ロードします。このとき、$: の要素文字列の先頭文字が
`~' (チルダ) だと、環境変数 HOME の値に展開されます。
また `~USER' はそのユーザのホームディレクトリに展開されます。
Ruby ライブラリとは Ruby スクリプト (*.rb) か拡張ライブラリ
(*.so,*.o,*... -
OpenSSL
:: ASN1 . # GeneralString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GeneralString (37567.0) -
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # GeneralizedTime(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: GeneralizedTime (37567.0) -
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の GeneralizedTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::GeneralizedTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # UniversalString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UniversalString (37567.0) -
ASN.1 の UniversalString 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の UniversalString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UniversalString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (37519.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
... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (37519.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]... -
Kernel
. # Rational(x , y = 1) -> Rational (37291.0) -
引数を有理数(Rational)に変換した結果を返します。
引数を有理数(Rational)に変換した結果を返します。
@param x 変換対象のオブジェクトです。
@param y 変換対象のオブジェクトです。省略した場合は x だけを用いて
Rational オブジェクトを作成します。
@raise ArgumentError 変換できないオブジェクトを指定した場合に発生します。
引数 x、y の両方を指定した場合、x/y した Rational オブジェクトを
返します。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational(1, 3) ... -
Enumerable
# slice _ after {|elt| bool } -> Enumerator (37273.0) -
パターンがマッチした要素、もしくはブロックが真を返した要素を末尾の要素 としてチャンク化(グループ化)したものを繰り返す Enumerator を 返し ます。
パターンがマッチした要素、もしくはブロックが真を返した要素を末尾の要素
としてチャンク化(グループ化)したものを繰り返す Enumerator を 返し
ます。
パターンを渡した場合は各要素に対し === が呼び出され、 それが真になった
ところをチャンクの末尾と見なします。 ブロックを渡した場合は、各要素に対
しブロックを適用し 返り値が真であった要素をチャンクの末尾と見なします。
パターンもブロックも最初から最後の要素まで呼び出されます。
各チャンクは配列として表現されます。そのため、以下のような呼び出しを行
う事もできます。
//emlist[例][ruby]{
enum.sl... -
RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (37267.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数 file の絶対パスファイル名を文字列で指定します。
@param line 引数 source の 1 行目の行番号を指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
... -
Complex
# rationalize -> Rational (37258.0) -
自身を Rational に変換します。
自身を Rational に変換します。
@param eps 許容する誤差。常に無視されます。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_r # => (3/1)
Complex(3, 2).to_r # => RangeError
//} -
Complex
# rationalize(eps) -> Rational (37258.0) -
自身を Rational に変換します。
自身を Rational に変換します。
@param eps 許容する誤差。常に無視されます。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_r # => (3/1)
Complex(3, 2).to_r # => RangeError
//} -
Vector
# elements _ to _ r -> Vector (37258.0) -
ベクトルの各成分をRationalに変換したベクトルを返します。
ベクトルの各成分をRationalに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_r) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.75, 7])
p v.elements_to_r
# => Vector[(5/2), (3/1), (23/4), (7/1)]
//} -
GC
# garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (37255.0) -
ガーベージコレクトを開始します。
ガーベージコレクトを開始します。
GC.start や ObjectSpace.#garbage_collect と同じ働きをします。
GC.disable により GC が禁止されている場合は何もしません。
nil を返します。
@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は tr... -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (37249.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。 -
BigDecimal
# floor -> Integer (37237.0) -
self 以下の最大整数を返します。
self 以下の最大整数を返します。
@param n 小数点以下の桁数を整数で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").floor # => 1
BigDecimal("-1.23456").floor # => -2
//}
以下のように引数 n を与えることもできます。
n >= 0 なら、小数点以下 n + 1 位の数字を操作します
(小数点以下を、最大 n 桁にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます... -
Hash
# default _ proc -> Proc | nil (37237.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを返します。 ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
ハッシュのデフォルト値を返す Proc オブジェクトを返します。
ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
//emlist[例][ruby]{
h = Hash.new {|hash, key| "The #{key} not exist in #{hash.inspect}"}
p h.default #=> nil
p block = h.default_proc #=> #<Proc:0x0x401a9ff4>
p block.call({},:foo) #=> "The foo not exist in {}"
h... -
Kernel
# create _ makefile(target , srcprefix = nil) -> true (37237.0) -
@todo
@todo
Kernel#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。
extconf.rb は普通このメソッドの呼び出しで終ります。
@param target ターゲットとなる拡張ライブラリの名前を指定します。
例えば、拡張ライブラリで "Init_foo" という関数を定義して
いる場合は、"foo" を指定します。
'/' を含む場合は、最後のスラッシュ以降のみをターゲット名
として使用します... -
ObjectSpace
. # garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (37237.0) -
どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。
どこからも参照されなくなったオブジェクトを回収します。
GC.start と同じです。
@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。
注意: これらのキーワード引数は Ruby の実装やバージョンによって異なりま
す。将来のバージョンとの互換性も保証されませ... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (37237.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_direct... -
Array
# drop _ while {|element| . . . } -> Array (37219.0) -
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、 残りの要素を配列として返します。 このメソッドは自身を破壊的に変更しません。
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、
残りの要素を配列として返します。
このメソッドは自身を破壊的に変更しません。
ブロックを指定しなかった場合は、Enumerator を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
# 変数aの値は変化しない
a # => [1, 2, 3, 4, 5, 0]
//}
@see Enumerable#drop_while, Array...