別のキーワード
ライブラリ
- ビルトイン (5843)
- abbrev (12)
- bigdecimal (24)
-
bigdecimal
/ util (36) - csv (24)
- date (64)
- etc (12)
-
fiddle
/ import (36) - forwardable (48)
- json (336)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (96)
- matrix (847)
- mkmf (36)
-
net
/ http (252) - open-uri (12)
- openssl (32)
- optparse (60)
- pathname (555)
- prime (132)
- rake (228)
-
rake
/ packagetask (12) -
rexml
/ document (396) -
ripper
/ lexer (16) -
rubygems
/ commands / update _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (24) -
rubygems
/ specification (132) - set (18)
- socket (12)
- stringio (74)
- strscan (96)
- tsort (33)
- win32ole (12)
クラス
-
ARGF
. class (36) - Addrinfo (12)
- Array (577)
- BigDecimal (24)
- Binding (7)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (24)
- Complex (120)
- Data (33)
- Date (74)
- DateTime (14)
- Dir (43)
- Encoding (24)
-
Encoding
:: Converter (72) - Enumerator (187)
-
Enumerator
:: Lazy (386) -
Enumerator
:: Yielder (30) - Exception (12)
- File (72)
-
File
:: Stat (504) - Float (543)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (24) -
Gem
:: Requirement (24) -
Gem
:: Specification (132) - Hash (267)
- IO (186)
- Integer (144)
-
JSON
:: State (216) - Logger (84)
-
Logger
:: Formatter (12) - MatchData (290)
- Matrix (713)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (264)
-
Net
:: HTTP (216) -
Net
:: HTTPGenericRequest (12) - NilClass (48)
- Numeric (176)
- Object (87)
-
OpenSSL
:: ASN1 :: ASN1Data (24) -
OpenSSL
:: BN (8) - OptionParser (60)
- Pathname (555)
- Prime (36)
-
Prime
:: EratosthenesGenerator (36) -
Prime
:: PseudoPrimeGenerator (48) - Proc (18)
-
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: DocType (24) -
REXML
:: Element (120) -
REXML
:: Elements (36) -
Rake
:: Application (108) -
Rake
:: FileList (48) -
Rake
:: FileTask (12) -
Rake
:: InvocationChain (36) -
Rake
:: PackageTask (12) - Random (36)
- Range (77)
- Rational (333)
- Regexp (33)
-
Ripper
:: Lexer (16) -
RubyVM
:: InstructionSequence (34) - Set (24)
- String (413)
- StringIO (74)
- StringScanner (96)
- Struct (55)
- Symbol (9)
- Thread (45)
-
Thread
:: Backtrace :: Location (84) - Time (72)
- TracePoint (12)
- UnboundMethod (12)
- Vector (122)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (544)
-
Fiddle
:: Importer (36) - FileUtils (12)
- Forwardable (48)
- GC (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (48)
-
Net
:: HTTPHeader (24) -
OpenURI
:: Meta (12) -
Rake
:: TaskManager (12) - TSort (33)
キーワード
- % (26)
- * (36)
- ** (24)
- + (43)
- - (36)
- -@ (21)
-
/ (35) - < (12)
- << (24)
- <= (12)
- <=> (60)
- == (51)
- === (18)
- > (12)
- >= (12)
- >> (12)
- [] (120)
- []= (19)
- abbrev (12)
-
abort
_ on _ exception= (12) - abs (21)
- absolute? (12)
-
absolute
_ path (24) - accept (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ element (12) -
add
_ loader (12) -
add
_ runtime _ dependency (12) - adjugate (12)
- all? (15)
- allocate (12)
-
allow
_ nan? (12) - angle (36)
-
angle
_ with (12) - antisymmetric? (7)
- any? (16)
- append (12)
-
append
_ features (12) - arg (36)
-
array
_ nl (12) -
array
_ nl= (12) - ascend (24)
-
ascii
_ compatible? (12) - atime (36)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - autoload (12)
-
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (12)
- bind (12)
- binread (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- bsearch (24)
-
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- captures (12)
- ceil (28)
- chain (7)
- chardev? (12)
-
check
_ circular? (12) - children (12)
- chown (12)
- chunk (36)
-
chunk
_ while (12) - cleanpath (12)
- coerce (24)
-
cofactor
_ expansion (12) - collect (72)
- collect! (33)
- collect2 (12)
-
collect
_ concat (36) - column (24)
-
column
_ vectors (12) - combination (24)
- component (12)
- concat (66)
- configure (12)
- conj (12)
- conjugate (36)
-
const
_ source _ location (12) - convpath (12)
- covector (12)
-
create
_ makefile (12) -
create
_ rule (12) - ctime (24)
- cycle (24)
-
datetime
_ format (12) -
datetime
_ format= (24) - deconstruct (5)
-
deconstruct
_ keys (9) -
def
_ delegator (12) -
def
_ instance _ delegator (12) - delegate (12)
- delete (24)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (24) - denominator (48)
-
deprecate
_ constant (12) - descend (24)
-
destination
_ encoding (12) - det (12)
- detect (12)
- determinant (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dirname (12)
- divmod (12)
-
do
_ rubygems _ update (12) - downto (12)
- drop (12)
-
drop
_ while (36) - each (228)
-
each
_ attribute (12) -
each
_ byte (36) -
each
_ char (24) -
each
_ child (31) -
each
_ codepoint (36) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ filename (12) -
each
_ grapheme _ cluster (8) -
each
_ index (12) -
each
_ key (12) -
each
_ line (84) -
each
_ pair (24) -
each
_ slice (12) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) -
each
_ value (12) -
each
_ with _ index (60) -
each
_ with _ object (12) - eager (6)
- egrep (12)
-
egrep
_ cpp (24) - eigen (12)
- eigensystem (12)
- element (12)
- empty? (9)
- end (12)
- entries (12)
-
entrywise
_ product (8) -
enum
_ for (48) - eql? (39)
- executable? (12)
-
executable
_ real? (12) -
family
_ addrinfo (12) - fatal (24)
- fatal? (12)
- fdatasync (12)
- fdiv (24)
- feed (12)
-
fetch
_ values (22) - field? (12)
- file? (12)
- filter (35)
- filter! (14)
-
filter
_ map (12) - find (12)
-
find
_ all (24) -
find
_ index (60) - finite? (12)
-
flat
_ map (36) - flatten (36)
- flatten! (24)
- flock (12)
- floor (29)
- fnmatch (12)
- force (12)
-
form
_ data= (12) -
formatted
_ program _ filename (12) - formatter (12)
- formatter= (12)
- ftype (12)
-
garbage
_ collect (12) - get (24)
- get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - gid (12)
- glob (16)
- grep (36)
-
grep
_ v (34) -
group
_ by (12) - grpowned? (12)
- gsub (48)
- gsub! (60)
-
hadamard
_ product (8) - hash (15)
- head (12)
- head2 (24)
- hstack (12)
- imag (12)
- imaginary (12)
- indent (12)
- indent= (12)
- index (67)
- infinite? (12)
- init (12)
- ino (12)
- inspect (63)
- install (12)
-
instance
_ delegate (12) - inv (12)
- inverse (12)
- isatty (12)
- join (12)
-
json
_ creatable? (12) -
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) - lazy (24)
- length (24)
- lex (8)
-
lib
_ dirs _ for (12) - lineno (12)
- lines (7)
- lstat (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (33)
- map (72)
- map! (33)
- match (48)
- match? (39)
- matched (12)
- matched? (12)
-
matched
_ size (12) -
max
_ by (24) -
max
_ nesting (12) -
max
_ nesting= (12) - member? (12)
- members (3)
- merge (12)
-
min
_ by (24) -
minmax
_ by (12) - minor (24)
- mode (12)
- modulo (12)
- mountpoint? (12)
- mtime (12)
- name (12)
-
named
_ captures (12) - names (12)
- namespace (12)
- namespaces (12)
- nan? (12)
- negative? (37)
- next (24)
-
next
_ float (11) -
next
_ values (12) -
next
_ year (12) - nlink (12)
- none? (15)
- norm (12)
- numerator (48)
-
object
_ nl (12) -
object
_ nl= (12) - offset (24)
- on (36)
- one? (15)
-
original
_ dir (12) - owned? (12)
- pack (21)
-
package
_ dir _ path (12) - parent (12)
- parse (8)
- partition (12)
- path (99)
- pathconf (12)
- pathmap (12)
- peek (12)
-
peek
_ values (12) - permutation (24)
- phase (36)
- pipe? (12)
- platform= (12)
- positive? (19)
- post (24)
- post2 (24)
-
post
_ match (24) -
pre
_ match (24) - prefix (12)
- prefixes (12)
-
prepend
_ features (12) -
prev
_ float (11) -
prev
_ year (12) -
prime
_ division (24) -
primitive
_ convert (48) - printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - quo (24)
- r (12)
- rakefile (12)
- rand (36)
- rank (12)
- rationalize (108)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - readable? (12)
-
readable
_ real? (12) - real (12)
- real? (12)
- realdirpath (12)
- realpath (24)
- rect (12)
- rectangular (12)
- regexp (12)
- regular? (12)
- reject (48)
- reject! (24)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ const (12) - reopen (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replicate (12)
-
report
_ on _ exception= (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) -
respond
_ to _ missing? (12) -
reverse
_ each (26) - rewind (24)
- rindex (24)
- root? (12)
- rotate (12)
- rotate! (12)
- round (37)
- row (24)
-
row
_ vectors (12) -
ruby2
_ keywords (18) -
rubygems
_ version (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) - saturday? (12)
- scan (24)
- select (60)
- select! (24)
-
send
_ request (12) - separator (12)
-
set
_ form _ data (12) - setgid? (12)
- setuid? (12)
- size (60)
- size? (12)
-
skew
_ symmetric? (7) -
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- solve (12)
-
sort
_ by (12) -
sort
_ by! (12) -
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - split (12)
- stat (12)
- status (12)
- step (100)
- sticky? (12)
- strftime (12)
- string (12)
- struct (12)
- sub (60)
- sub! (48)
-
sub
_ ext (12) - subsec (12)
- succ (12)
- symlink? (12)
- take (12)
-
take
_ while (48) - terminate (12)
- text (12)
- then (7)
- times (12)
-
to
_ a (48) -
to
_ binary (10) -
to
_ d (36) -
to
_ enum (48) -
to
_ f (84) -
to
_ h (18) -
to
_ hash (12) -
to
_ i (24) -
to
_ json (144) -
to
_ path (27) -
to
_ proc (6) -
to
_ r (84) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (99) -
to
_ string (12) -
top
_ level (12) -
top
_ level _ tasks (12) - tr (24)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
-
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) - truncate (96)
-
tsort
_ each (11) - tty? (12)
-
tty
_ output= (12) - uid (12)
- union (12)
- unlink (12)
- unpack (12)
- unpack1 (9)
- update (24)
- upto (12)
- value (24)
- value= (12)
-
values
_ at (60) - vstack (12)
- with (3)
-
with
_ index (60) -
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - xpath (12)
- yield (12)
-
yield
_ self (8) - zero? (24)
- zip (24)
検索結果
先頭5件
-
Gem
:: Specification # required _ rubygems _ version=(requirement) (15201.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement... -
Gem
:: Specification # rubygems _ version -> String (15201.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
...この Gem パッケージを作成した RubyGems のバージョンを返します。... -
Gem
:: Specification # rubygems _ version=(version) (15201.0) -
この Gem パッケージを作成した RubyGems のバージョンをセットします。 この属性は Gem パッケージが作成された時に自動的にセットされます。
...この Gem パッケージを作成した RubyGems のバージョンをセットします。
この属性は Gem パッケージが作成された時に自動的にセットされます。
@param version RubyGems のバージョンを指定します。... -
Array
# at(nth) -> object | nil (15118.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...みます。
@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
//}... -
Array
# repeated _ combination(n) -> Enumerator (12325.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_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],......3,3]]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a... -
Array
# repeated _ permutation(n) -> Enumerator (12325.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......t[例][ruby]{
a = [1, 2]
a.repeated_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 permutation of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=... -
Logger
# datetime _ format=(format) (12313.0) -
ログに記録する時の日付のフォーマットをセットします。
...ットをセットします。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d' # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("......test")
# => D, [2019-03-13T23:52:13.674385 #17393] DEBUG -- : test
# D, [2019/03/13T23:52:13.000012#17393] DEBUG -- : test
//}
@see Time#strftime, Logger#datetime_format... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (12269.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...al argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, the final hash argument is marked with a special
flag such that if it is the......argument splat to
another method call, and that method call does not include explicit
keywords or a keyword splat, the final element is interpreted as
keywords. In other words, keywords will be passed through the method to
other methods.
This should only be used for methods that delegate keywords t......ackwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the module responds to this method before calling
it. Also, be aware that if this met... -
Proc
# ruby2 _ keywords -> proc (12269.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...ormal argument splat. This
should only be called on procs that accept an argument splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked with a special flag such that if it is the fina......l argument splat to another method call, and that
method call does not include explicit keywords or a keyword splat, the
final element is interpreted as keywords. In other words, keywords will
be passed through the proc to other methods.
This should only be used for procs that delegate keywords to......backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc responds to this method before calling
it. Also, be aware that if this meth... -
Array
# repeated _ combination(n) { |c| . . . } -> self (12225.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_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],......3,3]]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a...