2331件ヒット
[1-100件を表示]
(0.090秒)
ライブラリ
- ビルトイン (1607)
- bigdecimal (84)
-
bigdecimal
/ util (12) - fiddle (72)
-
io
/ console (24) - ipaddr (12)
-
irb
/ output-method (12) - openssl (48)
- optparse (36)
- ostruct (12)
- pathname (144)
- pp (12)
- prettyprint (12)
- prime (12)
- ripper (24)
-
ripper
/ filter (24) -
rubygems
/ dependency (12) - set (18)
- socket (32)
- stringio (74)
-
syslog
/ logger (12) - uri (12)
- win32ole (24)
クラス
-
ARGF
. class (86) - Array (202)
- BigDecimal (84)
- Bignum (12)
- Binding (7)
- Dir (11)
- Enumerator (12)
-
Fiddle
:: Pointer (72) -
File
:: Stat (12) - Fixnum (9)
-
Gem
:: Dependency (12) - IO (110)
- IPAddr (12)
-
IRB
:: OutputMethod (12) - Integer (567)
- MatchData (60)
- Module (12)
- Numeric (24)
- Object (42)
-
OpenSSL
:: PKey :: EC :: Point (36) - OpenStruct (12)
- OptionParser (36)
- Pathname (144)
- PrettyPrint (12)
- Proc (12)
-
Process
:: Status (24) - Random (36)
- Regexp (12)
- Ripper (24)
-
Ripper
:: Filter (24) -
RubyVM
:: AbstractSyntaxTree :: Node (28) -
RubyVM
:: InstructionSequence (24) - Set (24)
- SignalException (12)
-
Socket
:: Ifaddr (32) - String (147)
- StringIO (74)
- Struct (12)
- Symbol (63)
-
Syslog
:: Logger (12) - Thread (17)
-
Thread
:: Backtrace :: Location (12) - Time (12)
- TracePoint (96)
-
URI
:: Generic (12) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIANT (12)
キーワード
- % (12)
- & (12)
- ** (12)
- -@ (18)
- < (12)
- <= (12)
- <=> (60)
- == (12)
- === (12)
- =~ (24)
- > (12)
- >= (12)
- >> (12)
- [] (48)
- []= (24)
- abs (12)
- allbits? (8)
- anybits? (8)
- binwrite (12)
-
bit
_ length (18) -
bsearch
_ index (10) - byterindex (3)
- bytes (12)
- ceil (24)
- ceildiv (3)
- chmod (12)
- chown (12)
- chr (24)
- codepoints (66)
- column (24)
- combination (24)
- count (12)
-
default
_ port (12) -
defined
_ class (12) - delete (12)
- digits (24)
- disable (24)
- disjoint? (12)
- div (12)
- divmod (18)
- downto (24)
-
each
_ codepoint (96) - enable (24)
- enabled? (12)
- exponent (12)
- fdiv (12)
- fileno (11)
-
first
_ column (7) -
first
_ lineno (19) - flags (12)
- flatten (12)
- flatten! (12)
- floor (24)
- gcd (12)
- gcdlcm (12)
- getbyte (12)
- group (12)
- hash (99)
- hex (12)
- ifindex (12)
- insert (12)
- inspect (12)
- intern (12)
- intersect? (12)
- invert! (12)
-
last
_ column (7) -
last
_ lineno (7) - lchmod (12)
- lchown (12)
- lcm (12)
- length (24)
- level (12)
- lineno (36)
- magnitude (12)
-
make
_ affine! (12) - match (3)
- mountpoint? (12)
- next (12)
- nobits? (8)
- offset (24)
- ord (12)
- order! (18)
- parse! (9)
-
pending
_ interrupt? (12) - permutation (24)
- permute! (9)
- pow (24)
- precs (12)
- pred (12)
-
pretty
_ print (12) -
prime
_ division (12) - printf (12)
- printn (12)
- rand (36)
- raw (12)
- raw! (12)
- remainder (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - rindex (12)
- rotate! (12)
- round (12)
-
safe
_ level (5) - sample (48)
-
set
_ encoding (108) -
set
_ to _ infinity! (12) - signo (12)
- size (48)
-
source
_ location (7) - succ (12)
- sysopen (12)
- taint (9)
- times (24)
-
to
_ a (12) -
to
_ bn (12) -
to
_ d (12) -
to
_ f (12) -
to
_ i (24) -
to
_ int (36) -
to
_ str (24) -
to
_ sym (12) - truncate (12)
- typekind (12)
- unlink (12)
- untaint (9)
- upto (24)
- utime (12)
- vartype (12)
- vhid (8)
- write (12)
- ~ (12)
検索結果
先頭5件
-
TracePoint
# self -> object (21114.0) -
イベントを発生させたオブジェクトを返します。
...イベントを発生させたオブジェクトを返します。
以下のようにする事で同じ値を取得できます。
//emlist[例][ruby]{
trace.binding.eval('self')
//}
@see TracePoint#binding......返します。
以下のようにする事で同じ値を取得できます。
なお、self メソッドは binding が nil になる :c_call および :c_return イベントに対しても正しく動作します。
//emlist[例][ruby]{
trace.binding.eval('self')
//}
@see TracePoint#binding... -
String
# codepoints {|codepoint| block } -> self (6318.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... -
StringIO
# codepoints {|codepoint| . . . } -> self (6303.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6303.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
String
# each _ codepoint {|codepoint| block } -> self (6302.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... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6302.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
Numeric
# to _ int -> Integer (6230.0) -
self.to_i と同じです。
...
self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}... -
Integer
# to _ int -> self (6220.0) -
self を返します。
...
self を返します。
//emlist[][ruby]{
10.to_i # => 10
//}... -
Symbol
# intern -> self (6219.0) -
self を返します。
...self を返します。
例:
:foo.intern # => :foo
@see String#intern... -
ARGF
. class # each _ codepoint { |c| . . . } -> self (6218.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...
self の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ ec......ho "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,...