種類
ライブラリ
- ビルトイン (2729)
- benchmark (55)
- bigdecimal (33)
- cmath (6)
- csv (66)
- date (2)
- fiber (16)
- fiddle (11)
-
fiddle
/ import (33) - fileutils (44)
-
irb
/ cmd / help (11) - json (22)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / time (11) - matrix (216)
- monitor (11)
- nkf (11)
- objspace (11)
- open-uri (4)
- open3 (11)
- openssl (22)
- optparse (275)
- pathname (55)
- prettyprint (11)
- prime (11)
- psych (61)
- rake (33)
- resolv (11)
-
rexml
/ document (11) - ripper (22)
- rubygems (11)
-
rubygems
/ source _ index (11) -
rubygems
/ specification (33) - set (22)
- socket (22)
- stringio (40)
- strscan (33)
- uri (22)
- win32ole (33)
- zlib (22)
クラス
-
ARGF
. class (11) - Addrinfo (11)
- Array (250)
- BasicObject (66)
-
Benchmark
:: Tms (11) - BigDecimal (44)
- CSV (44)
- Complex (55)
- Data (6)
- Date (12)
- DateTime (12)
- Dir (33)
-
Encoding
:: Converter (77) - Enumerator (36)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (65) -
Enumerator
:: Yielder (11) - Exception (22)
- Fiber (44)
-
Fiddle
:: Function (11) - File (121)
- Float (27)
-
Gem
:: SourceIndex (11) -
Gem
:: Specification (33) - Hash (39)
- IO (95)
-
IRB
:: ExtendCommand :: Help (11) - Integer (66)
- MatchData (11)
- Matrix (205)
- Method (11)
- Module (161)
- Numeric (55)
- Object (132)
-
OpenSSL
:: BN (11) - OptionParser (264)
- Pathname (55)
- PrettyPrint (11)
- Prime (11)
- Proc (35)
-
Psych
:: Visitors :: YAMLTree (11) -
REXML
:: Text (11) -
Rake
:: FileList (11) - Range (33)
- Rational (33)
- Refinement (3)
- Regexp (44)
-
Resolv
:: DNS (11) - Ripper (22)
-
RubyVM
:: InstructionSequence (11) - Set (22)
- Socket (11)
- String (278)
- StringIO (40)
- StringScanner (33)
- Struct (25)
- Symbol (10)
- Time (81)
- TracePoint (22)
- UnboundMethod (21)
- Vector (11)
- WIN32OLE (11)
-
WIN32OLE
_ EVENT (11) -
Zlib
:: GzipWriter (22)
モジュール
- Benchmark (44)
- CMath (6)
- Enumerable (264)
-
Fiddle
:: Importer (33) - FileUtils (55)
-
GC
:: Profiler (11) - Kernel (428)
- Marshal (22)
- Math (22)
- ObjectSpace (33)
- Open3 (11)
-
OptionParser
:: Arguable (11) - Process (11)
- Psych (28)
-
Rake
:: TaskManager (11) - URI (22)
キーワード
- ! (11)
-
$ * (11) - % (22)
- ** (33)
- + (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (11)
- ARGV (11)
- BasicObject (11)
- Cipher (11)
- Complex (22)
- DATA (11)
- DOSISH 対応 (11)
-
Data
_ Get _ Struct (11) -
Data
_ Make _ Struct (11) -
Data
_ Wrap _ Struct (11) - FORMAT (22)
- Fiber (11)
- Float (6)
- InstructionSequence (11)
- Location (11)
- Marshal フォーマット (11)
- MonitorMixin (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
- Numeric (11)
- RSTRING (11)
- Rational (22)
- Ruby が動作するプラットフォーム (11)
- Rubyの起動 (11)
- Ruby変更履歴 (11)
- Ruby用語集 (11)
- ScriptError (11)
- StringValuePtr (11)
- TracePoint (11)
-
WIN32OLE
_ VARIANT (11) - Win32 (11)
- Win32ネイティブ版 (11)
- [] (44)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) - accept (22)
-
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ runtime _ dependency (11) - advise (11)
-
alias
_ method (11) - alive? (11)
- arity (33)
- at (36)
- attr (8)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (11) - backtrace (11)
- benchmark (11)
- bigdecimal (11)
-
bigdecimal
/ ludcmp (11) -
bigdecimal
/ math (11) -
bigdecimal
/ newton (11) -
bigdecimal
/ util (11) - bind (11)
-
bind
_ call (10) - binmode (11)
- binread (11)
- bm (11)
- bsearch (44)
- call (11)
- caller (33)
- capitalize (8)
- capitalize! (8)
- cgi (11)
-
cgi
/ session (11) - chain (6)
- chmod (11)
- chomp (11)
- chop (11)
- chown (11)
- close (11)
- collect (34)
- collect! (34)
-
collect
_ concat (33) - combine (14)
- compile (11)
-
compile
_ option= (11) - concat (8)
- count (11)
- crypt (11)
- curry (11)
-
deconstruct
_ keys (3) - define (4)
-
define
_ task (11) - delete (22)
- delete! (11)
- diagonal (11)
-
did
_ you _ mean (11) - difference (6)
- div (11)
- divmod (22)
- downcase (8)
- downcase! (8)
- dump (22)
-
dump
_ stream (11) - each (22)
-
each
_ line (22) -
each
_ object (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - eigen (11)
- eigensystem (11)
- empty (11)
- encode (33)
-
end
_ with? (16) - entries (11)
-
enum
_ for (22) - exec (44)
- execute (11)
- fatal (11)
- fiddle (11)
-
fiddle
/ import (11) -
filter
_ map (15) - finish (11)
-
flat
_ map (33) - flock (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - format (22)
- frexp (11)
-
from
_ gems _ in (11) - ftype (11)
- gamma (11)
- gem (11)
- getaddrinfo (11)
- getopts (33)
- glob (22)
-
grep
_ v (11) - groups (11)
- gsub (22)
- handler= (11)
- hstack (22)
-
import
_ methods (3) - include (22)
- initialize (11)
- insert (11)
- inspect (22)
-
instance
_ exec (11) -
int
_ from _ prime _ division (11) - intersection (5)
- irb (11)
- j (11)
- jj (11)
- join (33)
- lchmod (11)
- lchown (11)
- lup (11)
-
lup
_ decomposition (11) - makedirs (11)
- map (34)
- map! (34)
- match (22)
-
max
_ by (44) -
memsize
_ of (11) -
method
_ missing (11) -
mkdir
_ p (11) - mkpath (11)
-
mod
_ inverse (11) - mode (22)
-
module
_ function (11) - modulo (11)
- monitor (11)
- new (166)
- on (132)
-
on
_ head (11) -
on
_ tail (11) - open (70)
- optparse (11)
- order (22)
- pack (19)
- pack テンプレート文字列 (11)
- parameters (2)
- parse (11)
-
parse
_ csv (11) - permute (11)
- pipeline (11)
- pow (22)
- prepend (8)
- prettyprint (11)
-
primitive
_ convert (44) - print (33)
- printf (33)
- private (11)
-
private
_ class _ method (11) -
private
_ constant (11) - product (22)
-
psych
_ y (11) - public (11)
-
public
_ class _ method (11) -
public
_ constant (11) -
public
_ send (22) - puts (22)
- rake (11)
-
raw
_ data (11) -
rb
_ call _ super (11) -
rb
_ compile _ cstr (11) -
rb
_ compile _ error (11) -
rb
_ compile _ error _ with _ enc (11) -
rb
_ compile _ file (11) -
rb
_ compile _ string (11) -
rb
_ data _ object _ alloc (11) -
rb
_ define _ class _ under (11) -
rb
_ define _ method (11) -
rb
_ eval _ string (11) -
rb
_ eval _ string _ protect (11) -
rb
_ io _ mode _ flags (1) -
rb
_ io _ mode _ flags2 (11) -
rb
_ load (11) -
rb
_ protect (11) -
rb
_ scan _ args (11) -
rb
_ thread _ select (1) - rdoc (11)
- realtime (11)
- refine (11)
- remainder (11)
-
respond
_ to _ missing? (11) - resume (11)
-
rexml
/ parsers / ultralightparser (11) -
rinda
/ rinda (11) - round (27)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (5) -
ruby
_ stack _ length (11) -
ruby
_ xcalloc (11) -
ruby
_ xfree (11) -
ruby
_ xmalloc (11) -
ruby
_ xrealloc (11) -
rubygems
/ security (11) -
safe
_ load (17) -
scan
_ full (11) -
search
_ full (11) - sin! (6)
- slice (13)
- spawn (44)
- split (22)
- sprintf (11)
- sprintf フォーマット (11)
- squeeze (11)
- squeeze! (11)
-
st
_ delete _ safe (11) - start (11)
-
start
_ with? (16) - strftime (11)
- struct (11)
- sub (22)
- sum (38)
- swapcase (8)
- swapcase! (8)
- syscall (11)
- system (44)
-
test
/ unit (11) - timeouts= (11)
-
to
_ a (22) -
to
_ c (11) -
to
_ csv (11) -
to
_ enum (22) -
to
_ f (22) -
to
_ h (17) -
to
_ int (11) -
to
_ json (110) -
to
_ r (11) -
to
_ s (11) -
to
_ str (11) - trace (11)
- transfer (11)
-
transform
_ values (16) -
transform
_ values! (16) - union (28)
- unlink (11)
- unpack (11)
- unshift (11)
- upcase (8)
- upcase! (8)
- using (22)
- utime (11)
-
values
_ at (11) - vstack (22)
- warn (22)
-
warn
_ unless _ e _ option (11) - warning (11)
-
warning
_ unless _ e _ option (11) -
webrick
/ cgi (11) - win32ole (11)
- with (2)
-
with
_ index (16) -
with
_ object (11) - write (36)
- xmlrpc (3)
- y (11)
- yield (33)
- zip (66)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- セキュリティモデル (11)
- パターンマッチ (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 制御構造 (11)
- 変数と定数 (11)
- 字句構造 (11)
- 正規表現 (11)
- 演算子式 (11)
- 終了処理 (11)
検索結果
先頭5件
-
irb (26404.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......として扱わない
=== irb のカスタマイズ
irb コマンドは起動時に以下のパスを上から順番に探索し、
最初に見つかったファイルを読み込みます。
* $IRBRC (もし環境変数 IRBRC が設定されていれば)
* $HOME/.irbrc (もし環境変数 H......== irb のカスタマイズ
irb コマンドは起動時に以下のパスを上から順番に探索し、
最初に見つかったファイルを読み込みます。
* $IRBRC (もし環境変数 IRBRC が設定されていれば)
* $XDG_CONFIG_HOME/irb/irbrc (もし環境変数 XDG_CONFIG_... -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (26343.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * version 3.1 対応リファレンス * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリ......
* spec/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* s......riables
* spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
*......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意......
* spec/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* s....../literal
* spec/operator
* spec/control
* spec/call
* spec/def
* spec/pattern_matching
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
*......ト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意... -
FileUtils
# ruby(*args) {|result , status| . . . } (24229.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Rational
# *(other) -> Rational | Float (21230.0) -
積を計算します。
...。
@param other 自身に掛ける数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) # => (3/8)
//}... -
String
# *(times) -> String (21224.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
...容を times 回だけ繰り返した新しい文字列を作成して返します。
@param times 整数
@return self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "......strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//}... -
Integer
# *(other) -> Numeric (21212.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
2 * 3 # => 6
//}... -
Array
# *(sep) -> String (18214.0) -
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
...ます。Array#join(sep) と同じ動作をします。
@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。
//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
/....../}
@see Array#join... -
Array
# *(times) -> Array (18214.0) -
配列の内容を times 回 繰り返した新しい配列を作成して返します。 値はコピーされないことに注意してください。
...内容を times 回 繰り返した新しい配列を作成して返します。
値はコピーされないことに注意してください。
@param times 繰り返したい回数を整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソ......ます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][ruby]{
p [1, 2, 3] * 3 #=> [1, 2, 3... -
Vector
# *(m) -> Matrix (18213.0) -
自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
...トル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
@param m 右から乗算を行う行列
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します......=== 注意
引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2]
a = [4, 5, 6]
m = Matrix[a]
p v * m # => Matrix[[4, 5, 6], [8, 10, 12]]
//}... -
Complex
# *(other) -> Complex (18142.0) -
積を計算します。
...積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}...