3672件ヒット
[1-100件を表示]
(0.145秒)
ライブラリ
- ビルトイン (1977)
- base64 (24)
- bigdecimal (144)
-
bigdecimal
/ math (72) -
bigdecimal
/ util (36) -
cgi
/ session (12) - date (120)
-
digest
/ sha2 (12) - etc (48)
- fileutils (31)
- getoptlong (24)
-
io
/ console (12) - ipaddr (12)
- json (12)
- matrix (74)
-
net
/ http (24) - observer (12)
- open-uri (24)
- optparse (168)
- pathname (24)
- rake (12)
-
rdoc
/ markup / to _ html _ crossref (12) - readline (12)
-
rubygems
/ installer (12) -
rubygems
/ requirement (12) -
rubygems
/ version (24) - set (189)
- shellwords (48)
- socket (12)
- stringio (12)
- strscan (24)
- syslog (108)
-
test
/ unit (1) - time (84)
- tmpdir (24)
- uri (36)
-
webrick
/ utils (12) - zlib (12)
クラス
-
ARGF
. class (24) - Array (165)
- BasicSocket (12)
- BigDecimal (96)
-
CGI
:: Session (12) - Data (6)
- Date (36)
- DateTime (84)
-
Digest
:: SHA2 (12) - Dir (24)
- Encoding (24)
-
Enumerator
:: Lazy (190) - File (16)
- Float (24)
- FrozenError (6)
-
Gem
:: Installer (12) -
Gem
:: Requirement (12) -
Gem
:: Version (24) - GetoptLong (24)
- Hash (48)
- IO (60)
- IPAddr (12)
- Integer (105)
- KeyError (16)
- Matrix (36)
- Module (12)
-
Net
:: HTTP (24) - Numeric (93)
- Object (96)
- OptionParser (168)
- Pathname (24)
- Proc (31)
-
RDoc
:: Markup :: ToHtmlCrossref (12) - Random (60)
- Range (94)
- Rational (13)
- Regexp (12)
- Set (252)
- String (60)
- StringIO (12)
- StringScanner (24)
- Struct (36)
- Thread (22)
- Time (223)
- TracePoint (8)
-
URI
:: FTP (12) - Vector (38)
-
Zlib
:: GzipReader (12)
モジュール
- Base64 (24)
- BigMath (96)
- Comparable (72)
- Enumerable (48)
- Etc (48)
- FileUtils (19)
- JSON (12)
- Kernel (386)
- Observable (12)
- OpenURI (24)
- Process (24)
-
Process
:: GID (24) -
Process
:: UID (24) - Readline (12)
- Shellwords (36)
- Signal (24)
- Syslog (108)
-
Test
:: Unit (1) - URI (24)
-
WEBrick
:: Utils (12)
オブジェクト
- main (12)
キーワード
- & (12)
- * (36)
- ** (2)
- + (12)
- - (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- > (12)
- >= (12)
- BigDecimal (24)
- Complex (24)
- E (12)
- FileUtils (12)
- Float (12)
- Integer (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - PI (12)
- Rational (12)
- Ruby用語集 (12)
- TaskArgumentError (12)
- TypeError (12)
- [] (42)
- []= (14)
- ^ (12)
- add (12)
- alert (12)
- atan (12)
- begin (12)
- between? (12)
-
change
_ privilege (24) -
chunk
_ while (9) - civil (18)
- clamp (12)
- clone (12)
-
cofactor
_ expansion (12) - collect (12)
-
collect
_ concat (12) - commercial (18)
-
completion
_ proc= (12) - cos (12)
-
cp
_ lr (7) - create (12)
-
create
_ listeners (12) - crit (12)
- cross (12)
-
cross
_ product (12) - debug (12)
-
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) - detect (24)
- difference (12)
- digits (24)
- dirname (4)
- disjoint? (12)
- div (12)
- drop (12)
- dump (12)
- dup (12)
- emerg (12)
- empty (12)
- end (12)
-
enum
_ for (48) - err (12)
- exec (48)
- exp (12)
-
extract
_ files (12) - fail (36)
- fileno (12)
- filter (7)
-
filter
_ map (6) - find (36)
-
find
_ all (12) - first (36)
-
flat
_ map (12) - flatten (24)
- flatten! (24)
-
from
_ name (24) - gcd (12)
- gcdlcm (12)
- getgrgid (12)
- getgrnam (12)
- getpwnam (12)
- getpwuid (12)
- gm (24)
- groups= (12)
-
handle
_ interrupt (12) - httpdate (12)
- include (24)
- info (12)
- inspect (12)
- intersect? (12)
- intersection (12)
- iso8601 (12)
- jd (12)
- join (24)
- key (8)
- kill (12)
- lambda (18)
- lambda? (12)
-
laplace
_ expansion (12) - last (36)
- lcm (12)
- limit (12)
- local (24)
- log (24)
- map (12)
- merge (12)
- mktime (24)
- mktmpdir (24)
- mode (24)
- mult (12)
- name= (10)
-
net
/ http (12) - new (262)
- new2 (12)
- notice (12)
-
notify
_ observers (12) - now (12)
- on (144)
-
open
_ uri (24) - ord (12)
- ordering= (12)
- ordinal (18)
- pack (21)
- pack テンプレート文字列 (12)
- parse (54)
- peek (12)
- peep (12)
- pow (2)
- printf (24)
- proc (19)
-
proper
_ subset? (12) -
proper
_ superset? (12) -
public
_ send (24) - raise (36)
- rand (60)
- raw (12)
-
rb
_ time _ timespec _ new (10) - read (48)
- readpartial (12)
- receiver (14)
- reject (36)
-
relative
_ path _ from (12) - replace (12)
- replicate (12)
- request (24)
- rfc2822 (12)
- rfc822 (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) - sample (48)
- seek (12)
- select (12)
-
setup
_ argv (1) - shellsplit (24)
- shellwords (12)
- shift (12)
- shutdown (12)
- sin (12)
- spawn (48)
- split (12)
- sqrt (24)
- step (103)
-
strict
_ decode64 (12) - strptime (18)
- sub (36)
- subset? (12)
- subtract (12)
- superset? (12)
- system (48)
- take (12)
- throw (1)
-
to
_ d (36) -
to
_ enum (48) -
to
_ i (24) -
to
_ s (12) - trap (24)
- union (24)
- unpack (12)
- uptodate? (12)
-
urlsafe
_ decode64 (12) - utc (24)
- warning (12)
- xmlschema (12)
- | (12)
- クラス/メソッドの定義 (12)
- 手続きオブジェクトの挙動の詳細 (2)
検索結果
先頭5件
-
ArgumentError (44012.0)
-
引数の数があっていないときや、数は合っていて、期待される振る舞いを持ってはいるが、期待される値ではないときに発生します。
...、数は合っていて、期待される振る舞いを持ってはいるが、期待される値ではないときに発生します。
例:
Time.at # => wrong number of arguments (0 for 1) (ArgumentError)
Array.new(-1) # => negative array size (ArgumentError)
など
@see TypeError......ていて、期待される振る舞いを持ってはいるが、期待される値ではないときに発生します。
例:
Time.at # => wrong number of arguments (given 0, expected 1..2) (ArgumentError)
Array.new(-1) # => negative array size (ArgumentError)
など
@see TypeError... -
Observable
# notify _ observers(*arg) -> nil (15212.0) -
オブザーバへ更新を通知します。
...ーバの update メソッドを順次呼び出します。
与えられた引数はその update メソッドに渡されます。
与えられた引数の数と登録されているオブザーバのupdate メソッドの引数の数に違いがある場合は
例外ArgumentErrorを発生します......。
全てのオブザーバの update メソッドを呼び出し後、更新フラグを初期化します。
@raise ArgumentError 与えられた引数の数と登録されているオブザーバのupdate メソッドの引数の数に違いがある場合に発生します。... -
Set
# proper _ superset?(set) -> bool (12206.0) -
self が集合 set の上位集合 (スーパーセット) である場合に true を 返します。
...elf が集合 set の上位集合 (スーパーセット) である場合に true を
返します。
superset? は、2 つの集合が等しい場合にも true となります。
proper_superset? は、2 つの集合が等しい場合には false を返します。
@param set 比較対象の Se......ise ArgumentError 引数が Set オブジェクトでない場合に発生します。
//emlist[][ruby]{
require 'set'
s = Set[1, 2, 3]
p s.superset?(Set[1, 2]) # => true
p s.superset?(Set[1, 4]) # => false
p s.superset?(Set[1, 2, 3]) # => true
p s.proper_superset?(Set......[1, 2]) # => true
p s.proper_superset?(Set[1, 4]) # => false
p s.proper_superset?(Set[1, 2, 3]) # => false
//}
@see Set#subset?......。
@raise ArgumentError 引数が Set オブジェクトでない場合に発生します。
//emlist[][ruby]{
s = Set[1, 2, 3]
p s.superset?(Set[1, 2]) # => true
p s.superset?(Set[1, 4]) # => false
p s.superset?(Set[1, 2, 3]) # => true
p s.proper_superset?(Set[1, 2])......# => true
p s.proper_superset?(Set[1, 4]) # => false
p s.proper_superset?(Set[1, 2, 3]) # => false
//}
@see Set#subset?... -
Rake
:: TaskArgumentError (12000.0) -
間違ったタスクの定義を行った場合に発生する例外です。
間違ったタスクの定義を行った場合に発生する例外です。 -
Etc
. # getpwuid(uid = getuid) -> Etc :: Passwd (9306.0) -
passwd データベースを検索し、 ユーザ ID が uid である passwd エントリを返します。
...し、
ユーザ ID が uid である passwd エントリを返します。
@param uid 検索する uid 。引数を省略した場合には getuid(2) の値を用います。
@raise ArgumentError エントリが見つからなかった場合に発生します。
@see getpwuid(3), Etc::Passwd... -
Kernel
. # Integer(arg , base = 0) -> Integer (9224.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...に対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略するか0を指定......数) です。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド to_int, to_i を持たないオブジェクトを引数に指定したか、to_int, to_i
が整数(Integerのサブクラス)を返さ......@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert nil into Integer (TypeError)
p Integer(Object.new) # cannot convert Object in... -
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (9224.0) -
引数を整数 (Fixnum,Bignum) に変換した結果を返します。
...に対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略するか0を指定......です。
@param exception false を指定すると、変換できなかった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド......(Integerのサブクラス)を返さなかった場合に発生します。
@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert ni... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) -> Enumerator :: Lazy (9206.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......o_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given......n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで、repeat の返り... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (9206.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......o_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given......n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで、repeat の返り... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (9206.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......o_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given......n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで、repeat の返り...