11823件ヒット
[1-100件を表示]
(0.130秒)
別のキーワード
クラス
-
ARGF
. class (256) - Array (1228)
- BasicObject (44)
- Bignum (18)
- Binding (17)
- Class (11)
- Complex (483)
- Data (14)
- Dir (117)
- Encoding (33)
-
Encoding
:: Converter (154) -
Encoding
:: InvalidByteSequenceError (22) - Enumerator (121)
-
Enumerator
:: ArithmeticSequence (12) -
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (175) -
Enumerator
:: Yielder (27) - Exception (117)
- FalseClass (55)
- Fiber (32)
- File (55)
-
File
:: Stat (341) - Fixnum (18)
- Float (103)
- FrozenError (5)
- Hash (700)
- IO (547)
- Integer (186)
- KeyError (14)
- LoadError (11)
- LocalJumpError (22)
- MatchData (213)
- Method (130)
- Module (583)
- Mutex (2)
- NameError (40)
- NilClass (28)
- NoMethodError (19)
- Numeric (258)
- Object (599)
-
ObjectSpace
:: WeakMap (11) - Proc (182)
-
Process
:: Status (165) -
Process
:: Tms (44) - Random (55)
- Range (177)
- Rational (85)
- Refinement (3)
- Regexp (195)
-
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (44) - SignalException (22)
- StopIteration (11)
- String (1549)
- Struct (110)
- Symbol (187)
- SyntaxError (2)
- SystemCallError (11)
- SystemExit (22)
- Thread (202)
-
Thread
:: Backtrace :: Location (33) -
Thread
:: Mutex (9) -
Thread
:: Queue (45) -
Thread
:: SizedQueue (43) - ThreadGroup (44)
- Time (595)
- TracePoint (194)
- TrueClass (44)
- UnboundMethod (98)
- UncaughtThrowError (30)
モジュール
- Comparable (79)
- Enumerable (663)
- GC (11)
キーワード
- != (11)
- !~ (11)
- % (34)
- & (33)
- * (44)
- ** (22)
- + (44)
- -@ (11)
-
/ (11) - < (33)
- << (62)
- <= (22)
- <=> (60)
- == (134)
- === (55)
- =~ (48)
- > (22)
- >= (22)
- >> (40)
- [] (197)
- []= (110)
- ^ (22)
-
_ dump (11) -
abort
_ on _ exception (11) - abs (11)
- abs2 (11)
-
absolute
_ path (22) - add (11)
-
add
_ trace _ func (11) - advise (11)
- alive? (3)
- all? (47)
- ancestors (11)
- angle (22)
- any? (56)
- append (7)
-
append
_ features (11) - arg (22)
- args (11)
- arity (33)
-
ascii
_ compatible? (11) - asctime (11)
- assoc (11)
- atime (11)
- autoload (11)
- backtrace (11)
-
backtrace
_ locations (11) - begin (22)
- between? (22)
- bind (11)
- binding (22)
- blksize (11)
- blocks (11)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (11)
- bytesize (11)
- bytesplice (6)
- call (11)
-
callee
_ id (11) - capitalize (22)
- capitalize! (11)
- captures (11)
- casecmp (22)
- casecmp? (16)
- casefold? (11)
- cause (11)
- ceil (11)
- center (11)
- children (12)
- chomp (11)
- chomp! (11)
- chop (11)
- chop! (11)
- chown (11)
- chr (33)
- chunk (11)
-
chunk
_ while (11) - clamp (24)
- class (11)
-
class
_ eval (22) -
class
_ exec (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) - clear (33)
- clone (33)
- codepoints (50)
- coerce (11)
- collect (44)
- collect! (22)
- compact (25)
- compact! (19)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - concat (38)
- conj (11)
- conjugate (11)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- convpath (11)
- coredump? (11)
- count (11)
- cover? (12)
- crypt (11)
- cstime (11)
- ctime (22)
- curry (42)
- cutime (11)
- day (11)
- dedup (2)
- default (22)
-
default
_ proc (11) -
define
_ method (22) -
defined
_ class (11) - delete (55)
- delete! (11)
-
delete
_ at (11) -
delete
_ if (44) -
delete
_ prefix (7) -
delete
_ prefix! (7) - denominator (11)
-
deprecate
_ constant (9) - deq (18)
- detect (22)
- dev (11)
-
dev
_ major (11) -
dev
_ minor (11) - directory? (11)
- disable (22)
- display (11)
- div (11)
- downcase (19)
- downcase! (11)
- drop (33)
-
drop
_ while (55) - dst? (11)
- dump (11)
- dup (44)
- each (154)
-
each
_ byte (44) -
each
_ char (22) -
each
_ child (12) -
each
_ codepoint (66) -
each
_ cons (22) -
each
_ grapheme _ cluster (14) -
each
_ key (22) -
each
_ line (88) -
each
_ pair (44) -
each
_ slice (22) -
each
_ value (22) -
each
_ with _ index (22) - eager (5)
- empty? (60)
- enable (22)
- enabled? (11)
- enclose (11)
- enclosed? (11)
- encode (33)
- encode! (22)
- encoding (11)
- end (11)
- entries (6)
-
enum
_ for (44) - eql? (101)
- equal? (22)
- errno (11)
-
error
_ bytes (11) - eval (11)
-
eval
_ script (6) - event (11)
- except (3)
- exception (22)
- executable? (11)
-
executable
_ real? (11) - exit (11)
-
exit
_ value (11) - exited? (11)
- exitstatus (11)
- extend (11)
- extended (11)
-
external
_ encoding (11) - fdiv (28)
- feed (11)
- fetch (66)
- file? (11)
- fill (66)
-
filter
_ map (15) - find (22)
-
find
_ index (33) - finish (11)
- finite? (8)
- first (44)
-
first
_ column (6) -
first
_ lineno (17) -
fixed
_ encoding? (11) -
flat
_ map (33) - flatten (11)
- flatten! (11)
- flock (11)
- floor (11)
-
force
_ encoding (11) - freeze (11)
- friday? (11)
- frozen? (11)
- ftype (11)
-
garbage
_ collect (11) - getc (11)
- getgm (11)
- getlocal (22)
- gets (48)
- getutc (11)
- gid (11)
- gmt? (11)
-
gmt
_ offset (11) - gmtime (11)
- gmtoff (11)
-
grapheme
_ clusters (14) - grep (33)
-
grep
_ v (31) - group (11)
-
group
_ by (22) - grpowned? (11)
- gsub (44)
- gsub! (44)
-
has
_ key? (11) -
has
_ value? (11) - hash (90)
- hex (11)
- hour (11)
- i (11)
- id2name (11)
- imag (11)
- imaginary (11)
-
import
_ methods (3) - include (11)
- include? (33)
- included (11)
-
incomplete
_ input? (11) - index (51)
- infinite? (19)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- ino (11)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - insert (22)
-
insert
_ output (11) - inspect (350)
-
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) -
instruction
_ sequence (6) - intern (11)
-
internal
_ encoding (11) - invert (11)
-
is
_ a? (11) - isdst (11)
- join (11)
-
keep
_ if (44) - key (18)
- key? (11)
- keys (22)
- kill (11)
-
kind
_ of? (11) - lambda? (11)
- last (22)
-
last
_ column (6) -
last
_ error (11) -
last
_ lineno (6) - lazy (22)
- length (22)
- lineno (11)
- lines (16)
- list (11)
- ljust (11)
-
local
_ variables (9) - localtime (22)
- lstat (11)
- lstrip (11)
- lstrip! (11)
- magnitude (11)
- map (55)
- map! (22)
-
marshal
_ dump (44) -
marshal
_ load (11) - match (55)
- match? (24)
-
max
_ by (44) - mday (11)
- member? (22)
- members (13)
- merge (22)
- merge! (22)
- method (11)
-
method
_ id (11) -
method
_ missing (11) - methods (11)
- min (11)
-
module
_ eval (22) -
module
_ exec (11) -
module
_ function (19) - modulo (11)
- mon (11)
- monday? (11)
- month (11)
- mtime (11)
- name (26)
-
named
_ captures (22) - names (11)
- nan? (11)
- next (11)
- next! (11)
-
next
_ float (10) -
next
_ values (11) - nil? (11)
- nlink (11)
- none? (13)
- nonzero? (11)
- nsec (11)
- numerator (11)
-
object
_ id (11) - oct (11)
- offset (22)
- one? (13)
- ord (11)
- overlap? (1)
- pack (19)
- parameters (39)
- partition (33)
- path (81)
- peek (11)
-
peek
_ values (11) -
pending
_ interrupt? (11) - permutation (22)
- phase (33)
- pid (22)
- pipe? (11)
- polar (22)
- pop (40)
- pos (33)
- positive? (26)
-
post
_ match (11) - pow (22)
-
pre
_ match (11) - pread (7)
- pred (11)
- prepend (37)
-
prepend
_ features (11) - prepended (11)
-
prev
_ float (10) -
primitive
_ convert (44) -
primitive
_ errinfo (11) - print (22)
- printf (22)
- priority (11)
- priority= (11)
- private (23)
-
private
_ call? (8) -
private
_ class _ method (15) -
private
_ constant (11) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) - product (22)
- protected (23)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) - public (23)
-
public
_ class _ method (15) -
public
_ constant (11) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ methods (11) -
public
_ send (22) - push (29)
- putback (22)
- putc (22)
- puts (22)
- pwrite (7)
- quo (22)
- raise (26)
-
raised
_ exception (11) - rassoc (11)
- rationalize (66)
- rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - read (22)
-
read
_ nonblock (20) - readable? (11)
-
readable
_ real? (11) - readchar (11)
- readline (24)
- readlines (33)
- readpartial (22)
- real (11)
- real? (11)
- reason (11)
- receiver (21)
- rect (11)
- rectangular (11)
- reduce (33)
- regexp (11)
- rehash (11)
- reject (22)
- reject! (44)
- remainder (11)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) - reopen (33)
-
repeated
_ combination (22) -
repeated
_ permutation (22) - replace (33)
- replacement (11)
- replacement= (11)
- replicate (11)
-
report
_ on _ exception (8) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - result (11)
- resume (11)
-
return
_ value (11) - reverse (22)
- reverse! (22)
-
reverse
_ each (24) - rewind (11)
- rindex (44)
- rjust (11)
- round (41)
- rpartition (11)
- rstrip (11)
- rstrip! (11)
-
ruby2
_ keywords (5) - sample (44)
- saturday? (11)
- scan (22)
- scrub (11)
- scrub! (11)
- sec (11)
- seed (11)
- seek (11)
- select! (10)
- self (11)
- send (22)
-
set
_ backtrace (11) -
set
_ encoding (44) -
set
_ encoding _ by _ bom (5) -
set
_ trace _ func (11) - shift (51)
- signaled? (11)
- signm (11)
- signo (11)
-
singleton
_ methods (11) - size (50)
- size? (11)
- skip (11)
- sleep (11)
- slice (110)
- slice! (22)
-
slice
_ after (32) -
slice
_ before (33) -
slice
_ when (11) - sort (22)
- sort! (22)
-
sort
_ by (22) - source (11)
-
source
_ location (17) - split (17)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (12) - status (11)
- step (118)
- stime (11)
- stop? (11)
- stopped? (11)
- stopsig (11)
- store (11)
- strftime (11)
- strip (11)
- strip! (11)
- sub (33)
- sub! (33)
- subsec (11)
- succ (18)
- succ! (11)
- success? (22)
- sum (19)
- sunday? (11)
-
super
_ method (20) - superclass (11)
- swapcase (22)
- swapcase! (11)
- symlink? (11)
- sysread (11)
- tag (10)
- taint (6)
- tainted? (6)
- tally (6)
- tap (11)
- tell (33)
- terminate (11)
- termsig (11)
- thursday? (11)
-
to
_ a (50) -
to
_ ary (11) -
to
_ c (44) -
to
_ enum (44) -
to
_ f (33) -
to
_ h (17) -
to
_ hash (22) -
to
_ i (44) -
to
_ int (11) -
to
_ path (24) -
to
_ proc (58) -
to
_ r (22) -
to
_ regexp (11) -
to
_ s (245) -
to
_ str (22) -
to
_ sym (11) - tr (11)
- tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) - transfer (3)
- transpose (11)
- truncate (11)
- tuesday? (11)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - type (6)
- uid (11)
- undump (7)
- uniq (22)
- uniq! (22)
- unpack (11)
- unpack1 (8)
- unshift (11)
- untaint (6)
- upcase (22)
- upcase! (11)
- update (22)
- upto (33)
- usec (11)
- utc (11)
- utc? (11)
-
utc
_ offset (11) - utime (11)
- value (21)
- value? (11)
- values (11)
-
values
_ at (44) - wakeup (11)
- wday (11)
- wednesday? (11)
- with (2)
-
with
_ index (22) - writable? (11)
-
writable
_ real? (11) -
write
_ nonblock (11) - yday (11)
- year (11)
- yield (22)
- zero? (22)
- zip (66)
- zone (11)
- | (22)
- ~ (11)
検索結果
先頭5件
-
Complex
# -(other) -> Complex (21215.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Time
# -(sec) -> Time (18171.0) -
自身より sec 秒だけ前の時刻を返します。
...り sec 秒だけ前の時刻を返します。
@param sec 実数を秒を単位として指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - 2592000 # => 2000-01-01 00:00:00 +0900
//}... -
Time
# -(time) -> Float (18161.0) -
自身と time との時刻の差を Float で返します。単位は秒です。
...します。単位は秒です。
@param time 自身との差を算出したい Time オブジェクトを指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - t # => 2592000.0
//}... -
Array
# repeated _ permutation(n) -> Enumerator (12304.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙......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 perm......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (12304.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙......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 perm......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Exception
# exception(error _ message) -> Exception (9303.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...数を指定した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列......を指定します。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
Complex
# -@ -> Complex (9221.0) -
自身の符号を反転させたものを返します。
...自身の符号を反転させたものを返します。
//emlist[例][ruby]{
-Complex(1) # => (-1+0i)
-Complex(-1, 1) # => (1-1i)
//}... -
Proc
# to _ proc -> self (9209.0) -
self を返します。
...self を返します。
//emlist[例][ruby]{
pr = proc {}
p pr == pr.to_proc # => true
//}... -
Exception
# exception -> self (9203.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...数を指定した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列......を指定します。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
Array
# pack(template) -> String (6653.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結......してください。
buffer のサイズ(capacity)が足りなければ、packはメモリを確保します。
//emlist[例][ruby]{
['!'].pack('@1a', buffer: 'abc') # => "a!"
['!'].pack('@5a', buffer: 'abc') # => "abc\u0000\u0000!"
//}
@param template 自身のバイナリとしてパックす...