4039件ヒット
[1-100件を表示]
(0.064秒)
クラス
-
ARGF
. class (190) - Array (608)
- BasicObject (11)
- Bignum (12)
- Binding (6)
- Complex (22)
- Data (2)
- Dir (32)
- Enumerator (11)
-
Enumerator
:: ArithmeticSequence (12) -
Enumerator
:: Chain (6) - File (11)
-
File
:: Stat (187) - Fixnum (9)
- Float (96)
- Hash (33)
- IO (263)
- Integer (758)
- MatchData (81)
- Method (33)
- Module (16)
- Mutex (2)
- NilClass (11)
- Numeric (99)
- Object (71)
- Proc (33)
-
Process
:: Status (77) - Random (66)
- Range (88)
- Rational (88)
- Regexp (55)
-
RubyVM
:: AbstractSyntaxTree :: Node (24) -
RubyVM
:: InstructionSequence (22) - SignalException (11)
- String (268)
- Struct (33)
- Symbol (58)
- SystemCallError (11)
- SystemExit (11)
- Thread (29)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: Mutex (9) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (23) - Time (231)
- TracePoint (194)
- UnboundMethod (33)
モジュール
- Enumerable (55)
キーワード
- % (22)
- & (22)
- * (33)
- ** (11)
- + (11)
- - (11)
- -@ (17)
-
/ (10) - < (11)
- << (11)
- <= (11)
- <=> (33)
- == (11)
- === (11)
- =~ (33)
- > (11)
- >= (11)
- >> (22)
- [] (54)
- []= (33)
- ^ (11)
-
_ _ id _ _ (11) - abs (11)
- allbits? (7)
- anybits? (7)
- arity (33)
- at (11)
- begin (22)
- binding (11)
-
bit
_ length (17) - blksize (11)
- blocks (11)
-
bsearch
_ index (9) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (11)
- bytesize (11)
-
callee
_ id (11) - ceil (44)
- ceildiv (2)
- chr (22)
- codepoints (50)
- combination (22)
-
const
_ source _ location (5) - count (77)
- cycle (22)
- day (11)
-
defined
_ class (11) -
delete
_ at (11) - denominator (55)
-
dev
_ major (11) -
dev
_ minor (11) - digits (22)
- disable (22)
- div (22)
- divmod (17)
- downto (22)
-
each
_ codepoint (66) - enable (22)
- enabled? (11)
- end (22)
- errno (11)
-
eval
_ script (6) - even? (11)
- event (11)
- exitstatus (11)
- fcntl (11)
- fdiv (11)
- fetch (33)
- fileno (32)
-
find
_ index (44) - first (44)
-
first
_ column (6) -
first
_ lineno (17) - flatten (11)
- flatten! (11)
- floor (44)
- gcd (11)
- gcdlcm (11)
- getbyte (33)
- gid (11)
-
gmt
_ offset (11) - gmtoff (11)
- hash (165)
- hex (11)
- hour (11)
- index (33)
- ino (11)
- insert (11)
- inspect (22)
-
instruction
_ sequence (6) - integer? (22)
- intern (22)
-
internal
_ encoding (22) - intersect? (3)
- intersection (5)
- ioctl (11)
- last (44)
-
last
_ column (6) -
last
_ lineno (6) - lcm (11)
- left (11)
- length (82)
- lineno (44)
- magnitude (11)
- match (3)
- max (9)
- mday (11)
-
method
_ id (11) - min (11)
- mode (11)
- modulo (11)
- mon (11)
- month (11)
-
named
_ captures (11) - next (11)
- nlink (11)
- nobits? (7)
- nsec (11)
-
num
_ waiting (9) - numerator (44)
-
object
_ id (11) - oct (11)
- odd? (11)
- offset (22)
- ord (22)
- pack (19)
- parameters (6)
- path (11)
-
pending
_ interrupt? (11) - permutation (22)
- pid (22)
- pop (22)
- pos (33)
- pow (22)
- pred (11)
- print (22)
- printf (22)
- priority (11)
-
public
_ method (11) - pwrite (7)
-
raised
_ exception (11) - rand (33)
- rationalize (22)
- rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - readbyte (22)
- remainder (11)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
return
_ value (11) - rindex (33)
- rotate (11)
- rotate! (11)
- round (52)
-
safe
_ level (7) - sample (44)
- sec (11)
- seed (11)
- self (11)
-
set
_ encoding (66) - setbyte (11)
- shift (22)
- signo (11)
- size (149)
- size? (11)
- sleep (11)
-
source
_ location (39) - state (11)
- status (11)
- stopsig (11)
- subsec (11)
- succ (11)
- sum (11)
- sysseek (11)
- syswrite (11)
- taint (9)
- tainted? (9)
- tell (33)
- termsig (11)
- times (22)
-
to
_ a (11) -
to
_ f (11) -
to
_ i (110) -
to
_ int (33) -
to
_ r (11) -
to
_ s (11) -
to
_ sym (22) - truncate (44)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - uid (11)
- unpack (11)
- untaint (9)
- upto (22)
- usec (11)
-
utc
_ offset (11) - wday (11)
-
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
write
_ nonblock (11) - yday (11)
- year (11)
- | (11)
- ~ (22)
検索結果
先頭5件
-
Integer
# integer? -> true (9103.0) -
常に真を返します。
...常に真を返します。
//emlist[][ruby]{
1.integer? # => true
1.0.integer? # => false
//}... -
Numeric
# to _ int -> Integer (6216.0) -
self.to_i と同じです。
...self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}... -
Object
# to _ int -> Integer (6210.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必......が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(ary[Foo.new]) # => :b
//}
@see Kernel.#Integer... -
String
# codepoints -> [Integer] (6203.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...列を返します。(self.each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。......Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# codepoints {|codepoint| block } -> self (6203.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...列を返します。(self.each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。......Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# each _ codepoint {|codepoint| block } -> self (6203.0) -
文字列の各コードポイントに対して繰り返します。
...ます。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see String#codepoints... -
Integer
# to _ int -> self (6104.0) -
self を返します。
self を返します。
//emlist[][ruby]{
10.to_i # => 10
//} -
ARGF
. class # codepoints -> Enumerator (6103.0) -
このメソッドは obsolete です。 代わりに ARGF.class#each_codepoint を使用してください。 使用すると警告メッセージが表示されます。
...このメソッドは obsolete です。
代わりに ARGF.class#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。... -
ARGF
. class # codepoints { |c| . . . } -> self (6103.0) -
このメソッドは obsolete です。 代わりに ARGF.class#each_codepoint を使用してください。 使用すると警告メッセージが表示されます。
...このメソッドは obsolete です。
代わりに ARGF.class#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。... -
ARGF
. class # each _ codepoint -> Enumerator (6103.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...す。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,...