7295件ヒット
[1-100件を表示]
(0.169秒)
別のキーワード
ライブラリ
- ビルトイン (4614)
- abbrev (12)
- bigdecimal (24)
-
bigdecimal
/ util (36) - csv (24)
- date (64)
- etc (12)
-
fiddle
/ import (36) - json (192)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (72)
- matrix (629)
- mkmf (36)
-
net
/ http (240) - openssl (24)
- optparse (60)
- pathname (399)
- prime (96)
- rake (96)
-
rexml
/ document (264) -
rubygems
/ custom _ require (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (24) -
rubygems
/ specification (84) - set (18)
- socket (12)
- stringio (74)
- strscan (36)
- tsort (33)
- win32ole (12)
クラス
-
ARGF
. class (12) - Addrinfo (12)
- Array (565)
- BigDecimal (24)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (12)
- Complex (108)
- Data (18)
- Date (74)
- DateTime (14)
- Dir (19)
-
Encoding
:: Converter (72) - Enumerator (163)
-
Enumerator
:: Lazy (308) - Exception (12)
- File (64)
-
File
:: Stat (84) - Float (387)
-
Gem
:: Installer (24) -
Gem
:: Requirement (24) -
Gem
:: Specification (84) - Hash (267)
- IO (168)
- Integer (120)
-
JSON
:: State (84) - Logger (60)
-
Logger
:: Formatter (12) - MatchData (206)
- Matrix (545)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (252)
-
Net
:: HTTP (216) - NilClass (24)
- Numeric (176)
- Object (75)
-
OpenSSL
:: ASN1 :: ASN1Data (24) - OptionParser (60)
- Pathname (399)
- Prime (36)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (72) -
REXML
:: CData (24) -
REXML
:: DocType (12) -
REXML
:: Element (108) -
REXML
:: Elements (36) -
Rake
:: Application (24) -
Rake
:: FileList (24) -
Rake
:: InvocationChain (24) - Random (36)
- Range (60)
- Rational (315)
- Regexp (33)
-
RubyVM
:: InstructionSequence (34) - Set (24)
- String (413)
- StringIO (74)
- StringScanner (36)
- Struct (31)
- Symbol (9)
- Thread (45)
-
Thread
:: Backtrace :: Location (72) - Time (24)
- TracePoint (12)
- UnboundMethod (12)
- Vector (72)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (448)
-
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 (33)
キーワード
- % (26)
- * (36)
- ** (24)
- + (43)
- - (36)
- -@ (21)
-
/ (35) - < (12)
- << (12)
- <= (12)
- <=> (48)
- == (51)
- === (12)
- > (12)
- >= (12)
- >> (12)
- [] (108)
- []= (19)
- abbrev (12)
-
abort
_ on _ exception= (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 (24)
-
angle
_ with (12) - antisymmetric? (7)
- any? (16)
- append (12)
-
append
_ features (12) - arg (24)
- atime (36)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) - autoload (12)
-
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (12)
- bind (12)
- binread (12)
- birthtime (12)
- bsearch (24)
-
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- captures (12)
- ceil (28)
- chain (7)
- children (12)
- chown (12)
- chunk (36)
-
chunk
_ while (12) - cleanpath (12)
- coerce (24)
-
cofactor
_ expansion (12) - collect (60)
- collect! (26)
- collect2 (12)
-
collect
_ concat (12) - column (24)
- combination (24)
- component (12)
- concat (66)
- configure (12)
- conjugate (12)
-
const
_ source _ location (12) - convpath (12)
-
create
_ makefile (12) -
create
_ rule (12) - ctime (24)
- cycle (24)
-
datetime
_ format (12) -
datetime
_ format= (24) - deconstruct (5)
-
deconstruct
_ keys (9) - delete (12)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (24) - denominator (48)
-
deprecate
_ constant (12) -
destination
_ encoding (12) - det (12)
- detect (12)
- determinant (12)
- directory? (12)
- dirname (12)
- divmod (12)
- downto (12)
- drop (12)
-
drop
_ while (24) - each (204)
-
each
_ byte (36) -
each
_ char (24) -
each
_ child (31) -
each
_ codepoint (12) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ grapheme _ cluster (8) -
each
_ index (12) -
each
_ key (12) -
each
_ line (84) -
each
_ pair (12) -
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) - egrep (12)
-
egrep
_ cpp (24) - eigen (12)
- eigensystem (12)
- element (12)
- empty? (9)
- end (12)
- entries (12)
-
entrywise
_ product (8) -
enum
_ for (24) - eql? (39)
-
family
_ addrinfo (12) - fatal (24)
- fdatasync (12)
- fdiv (24)
- feed (12)
-
fetch
_ values (22) - field? (12)
- filter (35)
- filter! (14)
-
filter
_ map (12) - find (12)
-
find
_ all (24) -
find
_ index (60) -
flat
_ map (12) - flatten (36)
- flatten! (24)
- flock (12)
- floor (29)
- 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 (36)
-
grep
_ v (34) - gsub (48)
- gsub! (48)
-
hadamard
_ product (8) - hash (3)
- head (12)
- head2 (24)
- hstack (12)
- indent= (12)
- index (67)
- inspect (36)
- install (12)
- isatty (12)
- join (12)
-
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) - lazy (12)
- lines (7)
- lstat (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map (60)
- map! (26)
- match (48)
- match? (39)
-
max
_ by (24) - member? (12)
- merge (12)
-
min
_ by (24) -
minmax
_ by (12) - minor (24)
- modulo (12)
- mtime (12)
-
named
_ captures (12) - namespace (12)
- negative? (29)
- next (12)
-
next
_ float (11) -
next
_ values (12) -
next
_ year (12) - none? (15)
- norm (12)
- numerator (48)
-
object
_ nl= (12) - offset (24)
- on (36)
- one? (15)
- pack (21)
- path (56)
- pathconf (12)
- pathmap (12)
- peek (12)
-
peek
_ values (12) - permutation (24)
- phase (24)
- platform= (12)
- positive? (19)
- post (24)
- post2 (24)
-
post
_ match (12) -
pre
_ match (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)
- rand (36)
- rationalize (108)
- realdirpath (12)
- realpath (24)
- rect (12)
- rectangular (12)
- regular? (12)
- reject (48)
- reject! (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) -
reverse
_ each (14) - rewind (12)
- rindex (24)
- rotate (12)
- rotate! (12)
- round (37)
- row (24)
-
rubygems
_ version= (12) -
satisfied
_ by? (12) - scan (24)
- select (60)
- select! (24)
-
send
_ request (12) - separator (12)
-
set
_ form _ data (12) - size (13)
-
skew
_ symmetric? (7) -
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - solve (12)
-
sort
_ by (12) -
sort
_ by! (12) -
source
_ location (36) - space= (12)
-
space
_ before= (12) - split (12)
- stat (12)
- step (100)
- strftime (12)
- struct (12)
- sub (60)
- sub! (36)
-
sub
_ ext (12) - symlink? (12)
- take (12)
-
take
_ while (48) - terminate (12)
- text (12)
- then (7)
- times (12)
-
to
_ a (24) -
to
_ binary (10) -
to
_ d (36) -
to
_ enum (24) -
to
_ f (36) -
to
_ i (24) -
to
_ json (144) -
to
_ path (8) -
to
_ r (36) -
to
_ s (48) - 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) - union (12)
- unpack (12)
- unpack1 (9)
- update (24)
- upto (12)
- value (24)
- value= (12)
-
values
_ at (60) - vstack (12)
- with (3)
-
with
_ index (36) -
with
_ object (24) -
yield
_ self (8) - zip (24)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (27471.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (24425.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...e_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も......絶対パスなら
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>
//}... -
Logger
:: Formatter # datetime _ format=(format) (21425.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... -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (21219.0) -
自身から生成した JSON 形式の文字列を返します。
...ます。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
requir......e "json"
(1.0).to_json # => "1.0"
//}... -
MatchData
# post _ match -> String (21219.0) -
マッチした部分より後ろの文字列を返します($'と同じ)。
...マッチした部分より後ろの文字列を返します($'と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.post_match # => "baz"
//}
@see MatchData#pre_match... -
MatchData
# pre _ match -> String (21219.0) -
マッチした部分より前の文字列を返します($`と同じ)。
...マッチした部分より前の文字列を返します($`と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.pre_match # => "foo"
//}
@see MatchData#post_match... -
Array
# repeated _ combination(n) -> Enumerator (18443.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......指定した場合に発生します。
//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],......]
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 (18443.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に......mlist[例][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......).to_a #=> [[]] # one permutation of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result... -
Pathname
# realpath -> Pathname (18437.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...い Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@para......emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")......p path.realpath
# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath...