8779件ヒット
[1-100件を表示]
(0.140秒)
ライブラリ
- English (154)
- ビルトイン (4543)
-
cgi
/ core (11) - cmath (120)
- continuation (11)
- csv (110)
- date (88)
- dbm (11)
- etc (33)
- expect (22)
-
fiddle
/ import (11) - find (11)
- getoptlong (11)
- ipaddr (11)
-
irb
/ magic-file (22) - logger (30)
- matrix (464)
- mkmf (55)
-
mutex
_ m (11) -
net
/ ftp (93) -
net
/ http (308) -
net
/ imap (55) -
net
/ smtp (22) - open-uri (11)
- openssl (220)
- optparse (66)
- ostruct (11)
- pathname (277)
- prettyprint (22)
- prime (154)
- psych (11)
- pty (11)
- rake (55)
-
rake
/ packagetask (11) -
rdoc
/ context (33) -
rdoc
/ markup (11) -
rdoc
/ top _ level (11) - readline (22)
-
rexml
/ document (319) -
rinda
/ tuplespace (11) -
ripper
/ lexer (29) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ package / tar _ output (22) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ source _ index (33) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (22) -
rubygems
/ user _ interaction (33) -
rubygems
/ version (11) - scanf (36)
- securerandom (11)
- set (22)
- shell (30)
-
shell
/ command-processor (24) -
shell
/ filter (24) - socket (220)
- stringio (83)
- strscan (66)
- syslog (11)
-
syslog
/ logger (11) - tempfile (33)
- time (44)
- tsort (60)
- uri (11)
-
webrick
/ httpauth / authenticator (11) -
webrick
/ httputils (33) -
win32
/ resolv (11) - zlib (121)
クラス
-
ARGF
. class (119) - Addrinfo (11)
- Array (461)
- BasicSocket (11)
- Bignum (30)
- CSV (110)
- DBM (11)
- Data (8)
- Date (88)
- Dir (251)
- Encoding (11)
-
Encoding
:: Converter (22) - Enumerator (122)
-
Enumerator
:: ArithmeticSequence (53) -
Enumerator
:: Chain (18) -
Enumerator
:: Lazy (331) -
Enumerator
:: Yielder (27) -
Etc
:: Group (11) -
Etc
:: Passwd (11) - File (165)
-
File
:: Stat (110) - Fixnum (27)
- Float (106)
-
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: GemPathSearcher (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: Package :: TarOutput (22) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceIndex (33) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (22) -
Gem
:: StreamUI (33) -
Gem
:: Version (11) - GetoptLong (11)
- Hash (203)
- IO (289)
- IPAddr (11)
- Integer (60)
- LoadError (11)
- Logger (30)
- MatchData (92)
- Matrix (364)
-
Matrix
:: LUPDecomposition (11) - Method (11)
- Module (27)
-
Net
:: FTP (84) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (308) -
Net
:: IMAP (22) -
Net
:: IMAP :: Address (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: IMAP :: ResponseCode (11) -
Net
:: SMTP (22) - Numeric (129)
- Object (68)
-
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: PKCS7 (11) -
OpenSSL
:: PKey :: DH (22) -
OpenSSL
:: PKey :: DSA (22) -
OpenSSL
:: PKey :: EC (11) -
OpenSSL
:: PKey :: RSA (22) -
OpenSSL
:: SSL :: SSLContext (44) -
OpenSSL
:: SSL :: SSLSocket (33) -
OpenSSL
:: X509 :: ExtensionFactory (22) -
OpenSSL
:: X509 :: Store (11) -
OpenSSL
:: X509 :: StoreContext (11) - OpenStruct (11)
- OptionParser (66)
- Pathname (277)
- PrettyPrint (22)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (99) - Proc (11)
-
Process
:: Status (33) -
Psych
:: Nodes :: Node (11) -
RDoc
:: Context (33) -
RDoc
:: Markup (11) -
RDoc
:: Options (33) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (22) -
REXML
:: Attribute (11) -
REXML
:: Attributes (55) -
REXML
:: DocType (22) -
REXML
:: Element (66) -
REXML
:: Elements (33) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (22) -
REXML
:: Parent (55) -
REXML
:: XPath (22) -
Rake
:: FileList (11) -
Rake
:: FileTask (11) -
Rake
:: PackageTask (11) - Random (66)
- Range (62)
- Rational (132)
- Regexp (55)
-
Rinda
:: TupleSpace (11) - Ripper (29)
-
RubyVM
:: InstructionSequence (11) - Set (22)
- Shell (30)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) - Socket (55)
-
Socket
:: AncillaryData (22) - String (331)
- StringIO (83)
- StringScanner (66)
- Struct (39)
- Symbol (11)
-
Syslog
:: Logger (11) - TCPServer (22)
- Tempfile (33)
- Thread (33)
-
Thread
:: Backtrace :: Location (44) - Time (55)
- TracePoint (11)
- UNIXServer (44)
- UNIXSocket (55)
-
URI
:: Generic (11) - UnboundMethod (11)
- Vector (89)
-
WEBrick
:: HTTPUtils :: FormData (33) -
Win32
:: Resolv (11) -
Zlib
:: Deflate (22) -
Zlib
:: GzipReader (33) -
Zlib
:: GzipWriter (55) -
Zlib
:: Inflate (11)
モジュール
-
CGI
:: QueryExtension (11) - CMath (120)
- Enumerable (490)
-
Fiddle
:: Importer (11) - FileTest (11)
- FileUtils (11)
- Find (11)
-
GC
:: Profiler (11) - Kernel (453)
- Math (33)
-
Mutex
_ m (11) - ObjectSpace (22)
-
OpenURI
:: Meta (11) - PTY (11)
- Process (51)
-
Rake
:: TaskManager (11) - SecureRandom (11)
- Syslog (11)
- TSort (60)
-
WEBrick
:: HTTPAuth :: Authenticator (11)
オブジェクト
- ENV (144)
-
IRB
:: MagicFile (22) -
Readline
:: HISTORY (22) - main (16)
キーワード
-
$ ? (11) -
$ CHILD _ STATUS (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ MATCH (11) -
$ NR (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ RS (11) -
$ ~ (11) - % (18)
- * (39)
- ** (17)
- + (28)
-
/ (17) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (11)
- <=> (55)
-
ALT
_ SEPARATOR (11) - Continuation (11)
- DATA (11)
- Float (6)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
PATH
_ SEPARATOR (11) - Rational (6)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- [] (132)
-
absolute
_ path (22) - accept (33)
- acos (6)
- acosh (6)
-
add
_ bindir (11) -
add
_ gem _ contents (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - all? (13)
- angle (22)
- any? (14)
-
append
_ features (22) - arg (22)
- ascend (22)
-
asciicompat
_ encoding (22) - asin (6)
- asinh (6)
-
at
_ exit (11) - atan (6)
- atan2 (6)
- atanh (6)
- atime (11)
- attribute (11)
-
attribute
_ of (11) -
backtrace
_ locations (22) -
base
_ label (11) - begin (16)
- bind (11)
- binread (22)
- binwrite (11)
- blockdev? (11)
- bsearch (22)
-
bsearch
_ index (9) - build (22)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (21)
-
ca
_ path (22) - caller (33)
-
caller
_ locations (22) - cat (18)
- catch (22)
- cbrt (17)
- ceil (23)
- cert (22)
- certificates (11)
- chain (22)
- chardev? (11)
- chars (21)
- chdir (33)
- check (11)
- chunk (33)
-
chunk
_ while (19) -
client
_ ca (11) -
clock
_ gettime (11) - codepoints (21)
- cofactor (11)
-
cofactor
_ expansion (11) - collect (77)
- collect! (29)
- collect2 (11)
-
collect
_ concat (33) - column (22)
- combination (22)
- combine (21)
- compatible? (11)
- convert (11)
- cos (6)
- cosh (6)
- create (42)
-
create
_ body (11) - cycle (22)
- data (33)
- date (11)
-
datetime
_ format (11) -
def
_ system _ command (6) -
default
_ executable (11) - define (4)
- deflate (11)
-
delete
_ at (33) -
delete
_ attribute (11) -
delete
_ if (44) - descend (22)
-
det
_ e (11) - detect (11)
-
determinant
_ e (11) - div (6)
- downto (33)
-
drop
_ while (33) - each (420)
- each2 (11)
-
each
_ attribute (22) -
each
_ byte (55) -
each
_ char (44) -
each
_ child (67) -
each
_ codepoint (44) -
each
_ cons (11) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ entry (24) -
each
_ filename (11) -
each
_ grapheme _ cluster (7) -
each
_ index (22) -
each
_ key (22) -
each
_ line (110) -
each
_ object (22) -
each
_ pair (44) -
each
_ prime (11) -
each
_ slice (11) -
each
_ strongly _ connected _ component (20) -
each
_ strongly _ connected _ component _ from (20) -
each
_ value (22) -
each
_ with _ index (55) -
each
_ with _ object (11) - eager (5)
-
egrep
_ cpp (22) - empty? (16)
- end (17)
-
enhance
_ with _ matching _ rule (11) -
enum
_ for (44) - exclude (11)
- exitstatus (11)
- exp (6)
- expect (22)
-
extra
_ chain _ cert (11) - fdatasync (11)
- fdiv (17)
-
fetch
_ path (11) -
fetch
_ values (18) - filename (11)
- filter (36)
- filter! (18)
-
filter
_ map (10) - find (55)
-
find
_ all (22) -
find
_ enclosing _ module _ named (11) -
find
_ executable (11) -
find
_ index (55) -
find
_ local _ symbol (11) -
find
_ name (11) - first (23)
-
flat
_ map (33) - flatten (22)
- flatten! (22)
- flock (22)
- floor (24)
- fnmatch (11)
- fnmatch? (11)
- foreach (106)
- fork (22)
- format (11)
- formatter (22)
- gamma (11)
- generate (77)
-
generate
_ line (11) - get (33)
- get2 (22)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ hosts _ path (11) -
get
_ path (11) -
get
_ text (11) - getbinaryfile (11)
- glob (76)
- grep (33)
-
grep
_ v (31) -
group
_ by (11) - gsub (77)
- gsub! (44)
- head (11)
- head2 (22)
- index (55)
- infinite? (11)
- inject (11)
- inspect (11)
- instance (22)
-
issuer
_ certificate (11) -
keep
_ if (33) -
laplace
_ expansion (11) - last (12)
-
last
_ match (22) -
last
_ status (7) - lazy (11)
- lex (7)
- libpathflag (11)
- lines (49)
-
link
_ command (11) -
load
_ gemspec (11) -
load
_ specification (11) - log (23)
- log10 (6)
- log2 (6)
- loop (11)
- lstat (11)
- map (66)
- map! (29)
- match (55)
- match? (11)
- matched (11)
-
matched
_ size (11) - matchedsize (11)
-
max
_ by (22) -
min
_ by (22) -
minmax
_ by (11) - mlsd (18)
- modulo (6)
- name (11)
- namespace (11)
- native (11)
- ndata (11)
- new (125)
- none? (13)
- notation (11)
- notify (11)
- offset (22)
- on (33)
- one? (13)
- open (205)
-
open
_ uri _ or _ path (11) - opendir (22)
-
optparse
/ date (11) - pack (19)
- pack テンプレート文字列 (11)
-
package
_ dir _ path (11) -
page
_ dir (11) - parse (22)
- partition (11)
- patch (22)
- path (79)
- pathconf (11)
- pathmap (11)
-
peer
_ cert (22) -
peer
_ cert _ chain (11) - permutation (22)
- phase (22)
- post (22)
- post2 (22)
-
post
_ match (11) -
pre
_ match (11) - printf (11)
- private (32)
-
private
_ key (11) - produce (5)
- public (11)
- put (11)
- put2 (22)
- putbinaryfile (11)
- quo (22)
- rand (88)
-
random
_ number (11) -
raw
_ data (11) - rdoc (11)
- read (55)
- readlines (11)
- recvmsg (11)
- reject (55)
- reject! (33)
- remainder (3)
-
renegotiation
_ cb (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) - request (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - retrbinary (11)
-
reverse
_ each (22) - rindex (22)
- round (34)
- route (11)
- row (22)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ security (11) - scan (22)
- scanf (36)
- select (66)
- select! (33)
- separator (11)
-
set
_ dictionary (22) - setgid? (11)
- setuid? (11)
- sh (11)
- sin (6)
-
singleline
_ format (11) - sinh (6)
- size (34)
- size? (22)
- slice (11)
-
slice
_ after (42) -
slice
_ before (55) -
slice
_ when (21) - socket? (11)
- solve (11)
-
sort
_ by (11) -
sort
_ by! (11) -
source
_ location (33) - specification (11)
- sqrt (17)
- stat (11)
- status (33)
- step (112)
- sticky? (11)
- stopsig (11)
- storbinary (11)
- store (11)
- strptime (22)
- sub (77)
- sub! (33)
-
subject
_ certificate (11) - subsec (11)
- sysaccept (11)
- system (11)
- table (11)
-
take
_ while (44) - tan (6)
- tanh (6)
-
template
_ dir (11) - terminated? (11)
- termsig (11)
- text (11)
- then (6)
- times (11)
-
to
_ enum (44) -
to
_ h (4) -
to
_ i (19) -
to
_ path (24) -
to
_ proc (5) -
to
_ s (11) -
token
_ match (11) - tr (11)
- tr! (11)
-
tr
_ s! (11) - trace (11)
-
transform
_ keys (7) -
transform
_ keys! (7) -
transform
_ values (8) -
transform
_ values! (8) - truncate (34)
-
try
_ file (11) -
tsort
_ each (20) -
uid
_ store (11) - union (11)
- uniq (16)
- unix (22)
-
unix
_ rights (11) -
unix
_ server _ loop (11) -
unix
_ server _ socket (22) - unpack (11)
- update (55)
-
upper
_ bound (11) - upto (33)
- userdb (11)
- visibility (22)
- wait2 (11)
- waitall (11)
- waitpid2 (11)
-
with
_ index (54) -
with
_ object (44) -
world
_ readable? (33) -
world
_ writable? (11) - wrap (22)
- yaml (11)
- yield (11)
-
yield
_ self (7) - zip (11)
- 制御構造 (11)
- 正規表現 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Rational
# -(other) -> Rational | Float (21413.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Date
# -(x) -> Rational | Date (21402.0) -
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。
...x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。
@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェ... -
Bignum
# -(other) -> Fixnum | Bignum | Float (18402.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# -(other) -> Fixnum | Bignum | Float (18402.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Vector
# -(v) -> Vector | Matrix (18301.0) -
self からベクトル v を減じたベクトルを返します。
...mn_size が 1 の Matrix オブジェクトも指定できます。
その場合は返り値も Matrix オブジェクトになります。
@param v 減算するベクトル。減算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と... -
Array
# at(nth) -> object | nil (15315.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...要素が 0 番目になります。nth の値が負の時には末尾から
のインデックスと見倣します。末尾の要素が -1 番目になります。
整数以外のオブジェクトを指定した場合は to_int メソッドによる
暗黙の型......みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [ "a", "b", "c", "d", "e" ]
a[0] #=> "a"
a[1] #=> "b"
a[-1] #=> "e"
a[-2] #=> "d"
a[10] #=> nil
//}... -
File
:: PATH _ SEPARATOR -> ";" | ":" (12417.0) -
PATH 環境変数の要素のセパレータです。UNIX では ":" MS-DOS な どでは ";" です。
...PATH 環境変数の要素のセパレータです。UNIX では ":" MS-DOS な
どでは ";" です。... -
Logger
# datetime _ format -> String | nil (12413.0) -
ログに記録する時の日付のフォーマットです。
...して
"%Y-%m-%dT%H:%M:%S.%06d " を使用します。
なお、"%06d" には Time#strftime ではなく、単に Time#usec の
値を String#% でフォーマットしたものが入ります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
lo......st")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d'
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("test")
# => D, [2019-03-12T22:52:13.674385 #17393] DEBUG -- : test
# D, [2019/03/12T22:52:13.000012#17393] DEBUG -- : test
//}
@see Time#strftime, Logger#datetime_format=... -
Array
# repeated _ combination(n) -> Enumerator (12408.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......a.repeated_combination(0).to_a #=> [[]] # one combination of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| resul... -
Array
# repeated _ combination(n) { |c| . . . } -> self (12408.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......a.repeated_combination(0).to_a #=> [[]] # one combination of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| resul... -
Array
# repeated _ permutation(n) -> Enumerator (12408.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......eated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutati......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation...