4630件ヒット
[1-100件を表示]
(0.056秒)
別のキーワード
ライブラリ
- ビルトイン (2562)
- abbrev (12)
- bigdecimal (24)
-
bigdecimal
/ util (36) - csv (12)
- date (64)
- etc (12)
-
fiddle
/ import (36) - json (180)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (48)
- matrix (387)
- mkmf (36)
-
net
/ http (240) - openssl (12)
- optparse (60)
- pathname (279)
- prime (48)
- rake (84)
-
rexml
/ document (228) -
rubygems
/ custom _ require (12) -
rubygems
/ installer (12) -
rubygems
/ requirement (24) -
rubygems
/ specification (84) - socket (12)
- stringio (55)
- strscan (24)
- tsort (11)
クラス
- Addrinfo (12)
- Array (347)
- BigDecimal (24)
-
CSV
:: Row (12) - Complex (36)
- Data (12)
- Date (74)
- DateTime (14)
-
Encoding
:: Converter (48) - Enumerator (84)
-
Enumerator
:: Lazy (24) - File (12)
-
File
:: Stat (12) - Float (273)
-
Gem
:: Installer (12) -
Gem
:: Requirement (24) -
Gem
:: Specification (84) - Hash (107)
- IO (108)
- Integer (84)
-
JSON
:: State (72) - Logger (36)
-
Logger
:: Formatter (12) - MatchData (152)
- Matrix (339)
-
Matrix
:: LUPDecomposition (12) - Module (240)
-
Net
:: HTTP (216) - NilClass (24)
- Numeric (106)
- Object (60)
-
OpenSSL
:: ASN1 :: ASN1Data (12) - OptionParser (60)
- Pathname (279)
- Prime (36)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (60) -
REXML
:: DocType (12) -
REXML
:: Element (108) -
REXML
:: Elements (36) -
Rake
:: Application (24) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (24) - Random (36)
- Range (33)
- Rational (216)
- Regexp (24)
- String (303)
- StringIO (55)
- StringScanner (24)
- Struct (12)
- Thread (45)
- Time (24)
- Vector (36)
モジュール
- Enumerable (212)
-
Fiddle
:: Importer (36) - FileUtils (12)
- 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) -
Rake
:: TaskManager (12) - TSort (11)
キーワード
- % (26)
- * (36)
- ** (24)
- + (36)
- - (36)
-
/ (35) - < (12)
- << (12)
- <= (12)
- <=> (48)
- == (51)
- === (12)
- > (12)
- >= (12)
- >> (12)
- [] (120)
- []= (7)
- abbrev (12)
-
abort
_ on _ exception= (12) - 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) - all? (15)
-
angle
_ with (12) - any? (16)
- append (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) - autoload (12)
-
backtrace
_ locations (24) - basename (12)
- begin (12)
- bind (12)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- ceil (25)
- children (12)
- chown (12)
- cleanpath (12)
- coerce (24)
-
cofactor
_ expansion (12) - collect (14)
- collect! (14)
- collect2 (12)
- column (24)
- combination (24)
- component (12)
- concat (66)
- configure (12)
-
const
_ source _ location (12) -
create
_ makefile (12) -
create
_ rule (12) - cycle (12)
-
datetime
_ format= (12) -
deconstruct
_ keys (9) - delete (12)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
deprecate
_ constant (12) - detect (12)
- divmod (12)
- downto (12)
- drop (12)
- each (156)
-
each
_ child (24) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ line (60) -
each
_ slice (12) -
each
_ strongly _ connected _ component _ from (11) -
each
_ with _ index (36) -
each
_ with _ object (12) - egrep (12)
-
egrep
_ cpp (24) - element (12)
- end (12)
-
enum
_ for (24) - eql? (39)
-
family
_ addrinfo (12) - fatal (24)
- fdiv (24)
- feed (12)
-
fetch
_ values (20) - field? (12)
- find (12)
-
find
_ index (60) - flatten (24)
- flatten! (12)
- flock (12)
- floor (26)
- fnmatch (12)
-
form
_ data= (12) -
formatted
_ program _ filename (12) - formatter= (12)
-
garbage
_ collect (12) - get (24)
- get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - glob (16)
- grep (24)
-
grep
_ v (24) - gsub (48)
- gsub! (48)
- head (12)
- head2 (24)
- hstack (12)
- indent= (12)
- index (67)
- join (12)
- key (12)
-
laplace
_ expansion (12) - lines (7)
- map (14)
- map! (14)
- match (24)
- match? (12)
-
max
_ by (24) - member? (12)
- merge (12)
-
min
_ by (24) - minor (24)
- modulo (12)
-
named
_ captures (12) - namespace (12)
-
next
_ year (12) - none? (15)
-
object
_ nl= (12) - offset (24)
- on (36)
- one? (15)
- pack (21)
- pathconf (12)
- permutation (24)
- platform= (12)
- post (24)
- post2 (24)
-
prepend
_ features (12) -
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)
- rand (36)
- rationalize (108)
- realdirpath (12)
- realpath (24)
-
relative
_ path _ from (12) -
remove
_ const (12) - reopen (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
report
_ on _ exception= (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) -
respond
_ to _ missing? (12) - rindex (24)
- rotate (12)
- rotate! (12)
- round (37)
- row (24)
-
rubygems
_ version= (12) -
satisfied
_ by? (12) - scan (24)
-
send
_ request (12) - separator (12)
-
set
_ form _ data (12) - solve (12)
- space= (12)
-
space
_ before= (12) - step (100)
- strftime (12)
- struct (12)
- sub (60)
- sub! (36)
-
sub
_ ext (12) - take (12)
- text (12)
-
to
_ a (12) -
to
_ d (36) -
to
_ enum (24) -
to
_ i (21) -
to
_ json (144) -
to
_ r (12) - tr (12)
-
tr
_ s (12) -
tr
_ s! (12) -
transform
_ keys (4) -
transform
_ keys! (4) - truncate (69)
-
tty
_ output= (12) - union (12)
- unpack (12)
- update (24)
- upto (12)
- value= (12)
-
values
_ at (48) - with (3)
-
with
_ object (24)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (18236.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Logger
:: Formatter # datetime _ format=(format) (15313.0) -
ログの日時フォーマットをセットします。
...@param format 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。
//emlist[例][ruby]{
require 'logger'
formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format......= '%Y-%m-%d %H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.datetime_format # => "%Y-%m-%d %H:%M:%S"
//}
@see Time#strftime... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (15313.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{......require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Array
# at(nth) -> object | nil (15119.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
@param nth インデックスを整数で指定します。
先頭の要素が 0 番目になります。nth の値が負の時には末尾から
のインデックス......みます。
@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 (12319.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 (12319.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 #=... -
Array
# repeated _ combination(n) { |c| . . . } -> self (12219.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) { |p| . . . } -> self (12219.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 #=... -
MatchData
# values _ at(*index) -> [String] (12144.0) -
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
...列全体を表します。
@param index インデックスを整数またはシンボル(名前付きキャプチャの場合)で 0 個以上指定します。
//emlist[例][ruby]{
m = /(foo)(bar)(baz)/.match("foobarbaz")
# same as m.to_a.values_at(...)
p m.values_at(0, 1, 2, 3, 4) # => ["fo......z", "foo", "bar", "baz", nil]
p m.values_at(-1, -2, -3, -4, -5) # => ["baz", "bar", "foo", nil, nil]
m = /(?<a>\d+) *(?<op>[+\-*\/]) *(?<b>\d+)/.match("1 + 2")
m.to_a # => ["1 + 2", "1", "+", "2"]
m.values_at(:a, :b, :op) # => ["1", "2", "+"]
//}
@see Array#values_at, Array#[]...