11505件ヒット
[1-100件を表示]
(0.116秒)
別のキーワード
クラス
-
ARGF
. class (168) - Array (1369)
- BasicObject (168)
- Binding (48)
- Class (16)
- Complex (312)
- Data (9)
- Dir (130)
-
Encoding
:: Converter (180) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (67)
-
Enumerator
:: Lazy (272) - Exception (80)
- Fiber (34)
- File (124)
-
File
:: Stat (84) - Float (173)
- FrozenError (6)
- Hash (447)
- IO (580)
- Integer (686)
- MatchData (169)
- Method (70)
- Module (736)
- Mutex (4)
- NilClass (67)
- Numeric (491)
- Object (484)
- Proc (39)
- Random (36)
- Range (226)
- Rational (291)
- Regexp (96)
-
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (94) - Set (30)
- String (1863)
- Struct (48)
- Symbol (62)
- Thread (148)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (20) -
Thread
:: Mutex (20) -
Thread
:: Queue (10) -
Thread
:: SizedQueue (50) - Time (146)
- TracePoint (177)
- UnboundMethod (72)
モジュール
- Comparable (21)
- Enumerable (972)
- GC (12)
キーワード
- ! (12)
- != (12)
- % (43)
- & (24)
- * (72)
- ** (36)
- + (67)
- +@ (22)
- - (60)
- -@ (43)
-
/ (35) - < (24)
- << (24)
- <= (24)
- <=> (126)
- == (72)
- === (48)
- =~ (40)
- > (24)
- >= (24)
- >> (12)
- [] (204)
- []= (84)
- ^ (24)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) -
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) - abs (12)
- abs2 (12)
-
absolute
_ path (24) - add? (3)
- advise (12)
-
alias
_ method (12) - all? (15)
- allbits? (8)
- angle (12)
- any? (23)
- anybits? (8)
-
append
_ as _ bytes (1) - arg (12)
- assoc (24)
- at (12)
- atime (24)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (12) - autoclose? (12)
- autoload (12)
- autoload? (12)
- backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (24) - begin (24)
- between? (12)
- bind (12)
-
bind
_ call (12) - binmode (24)
- birthtime (12)
-
bit
_ length (12) - broadcast (10)
- bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (36)
- bytesize (12)
- byteslice (36)
-
callee
_ id (12) - capitalize (12)
- capitalize! (12)
- captures (12)
- casecmp (24)
- casecmp? (18)
- ceil (54)
- ceildiv (3)
- center (12)
- chain (7)
- chars (24)
- children (14)
- chmod (12)
- chomp (12)
- chomp! (12)
- chop (12)
- chop! (12)
- chown (12)
- chr (36)
- chunk (12)
-
chunk
_ while (12) - clamp (9)
-
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (24)
- close (24)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
- codepoints (24)
- coerce (36)
- collect (36)
- collect! (24)
-
collect
_ concat (12) - combination (24)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - concat (21)
- conj (12)
- conjugate (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
- convert (12)
- convpath (12)
- count (84)
- crypt (12)
- ctime (24)
- curry (23)
- cycle (48)
- deconstruct (2)
-
deconstruct
_ keys (5) - dedup (3)
- default (24)
-
default
_ proc (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
defined
_ class (12) - delete (36)
- delete! (12)
- delete? (3)
-
delete
_ at (12) -
delete
_ if (51) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - denominator (48)
- deq (10)
-
destination
_ encoding (12) - detect (24)
- difference (10)
- dig (30)
- digits (24)
- directory? (12)
- disable (24)
- disasm (12)
- disassemble (12)
- disjoint? (3)
- display (12)
- div (24)
- divmod (24)
- downcase (12)
- downcase! (12)
- downto (24)
-
drop
_ while (36) - dump (8)
- dup (12)
- each (132)
-
each
_ byte (48) -
each
_ char (48) -
each
_ child (14) -
each
_ codepoint (24) -
each
_ cons (12) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ line (96) -
each
_ pair (24) -
each
_ slice (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - enable (24)
- encode (36)
- encode! (24)
- encoding (12)
- end (12)
-
end
_ with? (18) - entries (19)
-
enum
_ for (24) - eql? (48)
- equal? (12)
-
error
_ bytes (12) - eval (12)
-
eval
_ script (7) - event (12)
- exception (24)
- fcntl (12)
- fdatasync (12)
- fdiv (36)
- feed (12)
- fetch (20)
-
fetch
_ values (2) - fileno (23)
- fill (72)
- filter (63)
- filter! (28)
-
filter
_ map (18) - find (24)
-
find
_ all (36) -
find
_ index (72) - finish (12)
- finite? (18)
- first (72)
-
flat
_ map (12) - flatten (12)
- flatten! (15)
- flock (12)
- floor (54)
- flush (12)
-
force
_ encoding (12) -
garbage
_ collect (12) - gcd (12)
- gcdlcm (12)
- getbyte (24)
- getc (12)
- getlocal (24)
- gets (36)
-
grapheme
_ clusters (16) - grep (24)
-
grep
_ v (22) - gsub (48)
- gsub! (48)
- hash (27)
- hex (12)
-
ignore
_ deadlock= (4) - imag (24)
- imaginary (24)
- include (12)
- include? (75)
- included (12)
-
included
_ modules (12) - index (55)
- infinite? (18)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) - inject (36)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - insert (24)
-
insert
_ output (12) - inspect (151)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - integer? (12)
-
internal
_ encoding (12) - intersection (9)
- invert (12)
-
is
_ a? (12) - isatty (12)
- join (12)
-
keep
_ if (48) - key (7)
-
kind
_ of? (12) - label (24)
- last (12)
- lcm (12)
- length (12)
- lineno (12)
- lines (24)
- ljust (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - localtime (24)
- lstat (12)
- lstrip (12)
- magnitude (12)
- map (36)
- map! (24)
- match (48)
- match? (9)
- max (66)
- max= (10)
-
max
_ by (48) - member? (19)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - methods (12)
- min (130)
-
min
_ by (48) - minmax (36)
-
minmax
_ by (24) -
module
_ eval (12) -
module
_ function (36) - modulo (24)
- mtime (24)
- name (17)
- name= (10)
-
named
_ captures (1) - negative? (29)
- next (12)
- next! (12)
- nobits? (8)
- nonzero? (12)
- numerator (48)
-
object
_ id (12) - oct (12)
- offset (24)
- ord (24)
-
original
_ name (24) - pack (21)
- parameters (10)
- partition (12)
- path (44)
- permutation (24)
- phase (12)
- pid (12)
- polar (24)
- pop (22)
- pos (24)
- pos= (24)
- positive? (29)
-
post
_ match (12) - pow (24)
-
pre
_ match (12) - pread (8)
- pred (12)
- prepend (21)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - print (12)
- priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - product (24)
-
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ send (24) - putback (24)
- putc (12)
- pwrite (8)
- quo (36)
- raise (18)
-
raised
_ exception (12) - rand (24)
- rassoc (24)
- rationalize (108)
- read (24)
- readbyte (24)
- readchar (12)
- readlines (36)
- real (12)
- real? (24)
- receiver (6)
- rect (24)
- rectangular (24)
- reduce (36)
- refine (12)
- reject (84)
- reject! (51)
- remainder (24)
-
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) - reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replacement (12)
- replacement= (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
-
return
_ value (12) -
reverse
_ each (12) - rewind (24)
- rindex (48)
- rjust (12)
- round (69)
- rpartition (12)
- rstrip (12)
- rstrip! (12)
- sample (24)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select (93)
- select! (43)
- self (12)
-
set
_ backtrace (12) -
set
_ trace _ func (12) - setbyte (12)
- shift (56)
- signal (10)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (49)
- sleep (12)
- slice (116)
- slice! (36)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (12) -
source
_ encoding (12) -
source
_ location (36) - split (19)
- squeeze (12)
- squeeze! (12)
-
start
_ with? (18) - stat (12)
- step (112)
- strftime (12)
- strip (12)
- strip! (12)
- sub (36)
- sub! (36)
- succ (12)
- succ! (12)
- sum (54)
-
super
_ method (11) - superclass (4)
- swapcase (12)
- swapcase! (12)
- symlink? (12)
- sync (12)
- synchronize (12)
- syswrite (12)
- taint (9)
- tainted? (9)
-
take
_ while (72) - tell (24)
-
thread
_ variable _ set (12) - times (24)
-
to
_ a (31) -
to
_ binary (10) -
to
_ c (12) -
to
_ enum (24) -
to
_ f (24) -
to
_ h (19) -
to
_ i (60) -
to
_ int (12) -
to
_ path (8) -
to
_ proc (12) -
to
_ r (36) -
to
_ s (120) -
to
_ str (12) - tr (12)
-
tr
_ s (12) -
tr
_ s! (12) - transfer (4)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - truncate (60)
- tty? (12)
- undump (8)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (10)
- uniq (24)
- unpack (12)
- unpack1 (9)
- unshift (12)
- untaint (9)
- upcase (12)
- upcase! (12)
- upto (36)
- using (12)
-
values
_ at (12) - with (3)
-
with
_ index (12) -
with
_ object (24) - write (12)
- yield (12)
-
yield
_ self (16) - zero? (12)
- zip (72)
- | (24)
検索結果
先頭5件
-
Encoding
:: Converter # destination _ encoding -> Encoding (15315.0) -
変換先のエンコーディングを返します。
...変換先のエンコーディングを返します。
@return 変換先のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.destination_encoding #=> #<Encoding:EUC-JP>
//}... -
Enumerable
# find _ index {|obj| . . . } -> Integer | nil (12357.0) -
条件に一致する最初の要素の位置を返します。
...
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_i......素の位置を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられな... -
Enumerable
# find _ index(val) -> Integer | nil (12357.0) -
条件に一致する最初の要素の位置を返します。
...
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_i......素の位置を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられな... -
Array
# find _ index {|item| . . . } -> Integer | nil (12327.0) -
条件に一致する最初の要素の位置を返します。
...します。
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
p [1, 0, 0, 1, 0].index(1) #=> 0......0, 0, 0].index(1) #=> 0
p [0, 0, 0, 0, 0].index(1) #=> nil
//}
ブロックが与えられた場合には、各要素を引数として順にブロックを実行し、
ブロックが真を返した最初の要素の位置を返します。
一つも真にならなかった場合は nil を返......します。
//emlist[例][ruby]{
p [0, 1, 0, 1, 0].index {|v| v > 0} #=> 1
//}
引数、ブロックのどちらも与えられなかった場合は、
Enumerator のインスタンスを返します。
@see Array#rindex... -
Array
# find _ index(val) -> Integer | nil (12327.0) -
条件に一致する最初の要素の位置を返します。
...します。
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
p [1, 0, 0, 1, 0].index(1) #=> 0......0, 0, 0].index(1) #=> 0
p [0, 0, 0, 0, 0].index(1) #=> nil
//}
ブロックが与えられた場合には、各要素を引数として順にブロックを実行し、
ブロックが真を返した最初の要素の位置を返します。
一つも真にならなかった場合は nil を返......します。
//emlist[例][ruby]{
p [0, 1, 0, 1, 0].index {|v| v > 0} #=> 1
//}
引数、ブロックのどちらも与えられなかった場合は、
Enumerator のインスタンスを返します。
@see Array#rindex... -
ARGF
. class # internal _ encoding -> Encoding | nil (12315.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...nil を返します。
まだ読み込み処理を始めていない場合は Encoding.default_external を返します。
ARGF.class#set_encoding で設定します。
例:
# $ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('u......tf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
Enumerable
# find _ index -> Enumerator (12257.0) -
条件に一致する最初の要素の位置を返します。
...
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_i......素の位置を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられな... -
Object
# define _ singleton _ method(symbol) { . . . } -> Symbol (12251.0) -
self に特異メソッド name を定義します。
...す。
@param symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class......A
class << self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}... -
Object
# define _ singleton _ method(symbol , method) -> Symbol (12251.0) -
self に特異メソッド name を定義します。
...す。
@param symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class......A
class << self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}...