9919件ヒット
[1-100件を表示]
(0.068秒)
別のキーワード
クラス
-
ARGF
. class (843) - Array (345)
- BasicObject (88)
- Bignum (99)
- Binding (78)
- Class (11)
- Complex (143)
- Data (8)
- Dir (82)
- Encoding (77)
-
Encoding
:: Converter (187) -
Encoding
:: InvalidByteSequenceError (77) -
Encoding
:: UndefinedConversionError (55) - Enumerator (55)
-
Enumerator
:: ArithmeticSequence (24) -
Enumerator
:: Chain (24) -
Enumerator
:: Lazy (85) - Exception (73)
- FalseClass (22)
- Fiber (24)
- File (55)
-
File
:: Stat (231) - Fixnum (66)
- Float (171)
- Hash (186)
- IO (441)
- Integer (758)
- LoadError (11)
- MatchData (235)
- Method (118)
- Module (164)
- Mutex (2)
- NameError (11)
- NilClass (22)
- NoMethodError (11)
- Numeric (196)
- Object (264)
- Proc (122)
-
Process
:: Status (110) - Random (66)
- Range (383)
- Rational (137)
- Regexp (195)
-
RubyVM
:: AbstractSyntaxTree :: Node (30) -
RubyVM
:: InstructionSequence (97) - SignalException (22)
- String (1949)
- Struct (64)
- Symbol (202)
- SyntaxError (2)
- SystemCallError (11)
- SystemExit (11)
- Thread (148)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (9) -
Thread
:: Mutex (9) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (23) - ThreadGroup (44)
- Time (400)
- TracePoint (50)
- TrueClass (22)
- UnboundMethod (76)
- UncaughtThrowError (30)
モジュール
- Comparable (5)
- Enumerable (237)
- GC (11)
- Warning (8)
キーワード
- % (40)
- & (28)
- * (39)
- ** (17)
- + (28)
- +@ (9)
- - (17)
- -@ (26)
-
/ (16) - < (11)
- << (40)
- <= (11)
- <=> (47)
- == (47)
- === (65)
- =~ (33)
- > (11)
- >= (11)
- >> (40)
- [] (233)
- []= (99)
- ^ (17)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) - abs (17)
-
absolute
_ path (22) - add (11)
-
alias
_ method (11) - allbits? (7)
- angle (33)
- anybits? (7)
- arg (33)
- args (11)
- argv (11)
- arity (33)
-
ascii
_ compatible? (11) -
ascii
_ only? (11) - asctime (11)
- autoload? (11)
- b (11)
- backtrace (22)
-
backtrace
_ locations (22) -
base
_ label (22) - begin (28)
-
bind
_ call (10) - binding (22)
- binmode (11)
- binmode? (11)
-
bit
_ length (17) - blksize (11)
- blocks (11)
- bsearch (22)
-
bsearch
_ index (9) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (47)
- bytesize (11)
- byteslice (33)
- bytesplice (4)
- call (33)
- capitalize (11)
- capitalize! (11)
- captures (11)
- casecmp (11)
- casecmp? (8)
- casefold? (11)
- ceil (49)
- ceildiv (2)
- center (11)
- chars (36)
- children (6)
- chomp (11)
- chomp! (11)
- chop (11)
- chop! (11)
- chown (11)
- chr (33)
- clamp (16)
-
class
_ exec (11) -
class
_ variable _ get (11) - clear (11)
- close (11)
- closed? (11)
- codepoints (36)
- concat (19)
- conjugate (22)
-
const
_ get (11) -
const
_ missing (11) -
const
_ source _ location (5) - convert (22)
- convpath (11)
- count (77)
- cover? (17)
- crypt (11)
- ctime (11)
- day (11)
- dedup (2)
-
define
_ singleton _ method (22) - delete (11)
- delete! (11)
-
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) - denominator (55)
-
destination
_ encoding (33) -
destination
_ encoding _ name (22) - dev (11)
-
dev
_ major (11) -
dev
_ minor (11) - dig (27)
- digits (22)
- disasm (11)
- disassemble (11)
- div (28)
- divmod (17)
- downcase (11)
- downcase! (11)
- downto (22)
- dummy? (11)
- dump (11)
- each (100)
-
each
_ byte (44) -
each
_ char (44) -
each
_ codepoint (44) -
each
_ grapheme _ cluster (14) -
each
_ line (66) -
each
_ with _ index (22) -
each
_ with _ object (11) - eager (5)
- empty? (11)
- enclose (11)
- enclosed? (11)
- encode (33)
- encode! (22)
- encoding (33)
- end (22)
-
end
_ with? (11) - entries (17)
-
enum
_ for (44) - eof (11)
- eof? (11)
- eql? (36)
- errno (11)
-
error
_ bytes (11) -
error
_ char (11) - eval (11)
-
eval
_ script (6) - even? (14)
- exception (11)
-
exclude
_ end? (11) - exitstatus (11)
-
external
_ encoding (22) - fcntl (11)
- fdiv (14)
- file (11)
- filename (11)
- fileno (32)
- fill (44)
- filter! (12)
-
find
_ index (44) - finish (11)
- first (22)
-
first
_ column (6) -
first
_ lineno (17) -
fixed
_ encoding? (11) - floor (49)
- force (11)
-
force
_ encoding (11) - ftype (11)
-
garbage
_ collect (11) - gcd (11)
- gcdlcm (11)
- getbyte (33)
- getc (22)
- getgm (11)
- getlocal (22)
- gets (66)
- 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)
- hash (165)
- hex (11)
- hour (11)
- id2name (11)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - imag (22)
- imaginary (22)
- include? (22)
-
incomplete
_ input? (11) - index (33)
- initialize (11)
- ino (11)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - insert (11)
-
insert
_ output (11) - inspect (350)
-
instance
_ exec (11) -
instance
_ variable _ get (11) - integer? (22)
- intern (11)
-
internal
_ encoding (22) - ioctl (11)
- irb (8)
- join (11)
-
keep
_ if (22) - label (22)
- last (22)
-
last
_ column (6) -
last
_ error (11) -
last
_ lineno (6) - lcm (11)
- left (11)
- length (82)
- lineno (44)
- lineno= (11)
- lines (64)
- list (11)
- ljust (11)
-
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (10) - lstrip (11)
- lstrip! (11)
- magnitude (58)
- match (47)
- match? (24)
- max (51)
-
max
_ by (44) - mday (11)
- member? (11)
- merge (22)
- merge! (22)
-
method
_ missing (11) - min (53)
- minmax (10)
- mode (11)
-
module
_ exec (11) -
module
_ function (4) - modulo (17)
- mon (11)
- month (11)
- name (35)
- name= (9)
-
named
_ captures (11) - names (33)
- negative? (26)
- new (11)
- next (22)
- next! (11)
- nlink (11)
- nobits? (7)
- nsec (11)
-
num
_ waiting (9) - numerator (44)
-
object
_ id (11) - oct (11)
- odd? (14)
- offset (22)
- ord (22)
-
original
_ name (22) - pack (19)
- partition (11)
- path (81)
-
pending
_ interrupt? (11) - permutation (22)
- phase (33)
- pid (22)
- pos (33)
- pos= (11)
-
post
_ match (11) - pow (22)
-
pre
_ match (11) - pread (7)
- pred (11)
- prepend (19)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - print (22)
- printf (22)
- priority (11)
- private (4)
- protected (4)
- public (4)
-
public
_ send (22) - putback (22)
- putc (11)
- puts (11)
- pwrite (7)
- raise (21)
- rand (22)
- rationalize (22)
- rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - read (33)
-
read
_ nonblock (22) -
readagain
_ bytes (11) - readbyte (22)
- readchar (22)
- readline (66)
- readlines (66)
- readpartial (22)
- receiver (10)
- rectangular (22)
- regexp (11)
- remainder (14)
- replace (11)
- replacement (11)
- replacement= (11)
- replicate (11)
-
respond
_ to _ missing? (11) - resume (11)
- reverse (11)
- reverse! (11)
- rewind (11)
- rindex (33)
- rjust (11)
- round (63)
- rpartition (11)
- rstrip (11)
- rstrip! (11)
-
safe
_ level (7) - scan (22)
- scrub (33)
- scrub! (33)
- sec (11)
- seed (11)
- seek (11)
- select! (22)
- send (22)
-
set
_ backtrace (11) -
set
_ encoding (66) -
set
_ encoding _ by _ bom (5) - setbyte (11)
- setgid? (11)
- signal (9)
- signaled? (11)
- signm (11)
- signo (11)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - size (152)
- size? (11)
- skip (11)
- sleep (11)
- slice (132)
- slice! (77)
- source (11)
-
source
_ encoding (33) -
source
_ encoding _ name (22) -
source
_ location (39) - split (17)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (11) - state (11)
- status (22)
- step (28)
- stopsig (11)
- strftime (11)
- string (11)
- strip (11)
- strip! (11)
- sub (33)
- sub! (33)
- subsec (11)
- succ (25)
- succ! (11)
- sum (11)
- swapcase (11)
- swapcase! (11)
- sysread (11)
- sysseek (11)
- syswrite (11)
- tag (10)
- tell (33)
- termsig (11)
-
thread
_ variable _ get (11) - times (22)
-
to
_ a (61) -
to
_ binary (9) -
to
_ c (11) -
to
_ enum (44) -
to
_ f (25) -
to
_ h (17) -
to
_ i (110) -
to
_ int (33) -
to
_ io (11) -
to
_ path (24) -
to
_ r (22) -
to
_ regexp (11) -
to
_ s (322) -
to
_ str (22) -
to
_ sym (11) -
to
_ write _ io (11) - tr (11)
- tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) - transfer (3)
- truncate (55)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - uid (11)
- undump (7)
- ungetbyte (11)
- ungetc (11)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - unpack (11)
- unpack1 (8)
- upcase (11)
- upcase! (11)
- update (22)
- upto (33)
- usec (11)
- using (11)
- utc (11)
- utc? (11)
-
utc
_ offset (11) -
valid
_ encoding? (11) - value (10)
-
values
_ at (11) - warn (8)
- wday (11)
- with (2)
-
with
_ index (16) -
with
_ object (11) -
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
write
_ nonblock (11) - yday (11)
- year (11)
- yield (11)
- zone (11)
- | (17)
- ~ (28)
検索結果
先頭5件
-
Integer
# integer? -> true (9103.0) -
常に真を返します。
...常に真を返します。
//emlist[][ruby]{
1.integer? # => true
1.0.integer? # => false
//}... -
SignalException
# signm -> String (9103.0) -
self.message のエイリアスです。
...self.message のエイリアスです。
//emlist[例][ruby]{
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
puts e.signm # => SIGHUP
end
//}... -
SignalException
# signo -> Integer (9103.0) -
self のシグナル番号を返します。
...self のシグナル番号を返します。
//emlist[例][ruby]{
p Signal.signame(1) # => "HUP"
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
p e.signo # => 1
end
//}... -
ARGF
. class # external _ encoding -> Encoding (6203.0) -
ARGF が処理するファイルに対する外部エンコーディングを返します。 デフォルトは Encoding.default_external です。
...ARGF が処理するファイルに対する外部エンコーディングを返します。
デフォルトは Encoding.default_external です。
ARGF.class#set_encoding で設定します。
例:
ARGF.external_encoding # => #<Encoding:UTF-8>
@see IO, ARGF.class#internal_encoding... -
ARGF
. class # getbyte -> Integer | nil (6203.0) -
self から 1 バイト(0..255)を読み込み整数として返します。 既に EOF に達していれば nil を返します。
...バイト(0..255)を読み込み整数として返します。
既に EOF に達していれば nil を返します。
ARGF はスクリプトに指定した引数(Object::ARGV を参照) をファイル名
とみなして、それらのファイルを連結した 1 つの仮想ファイルを表......cho "bar" > file2
$ ruby argf.rb file1 file2
ARGF.getbyte # => 102
ARGF.getbyte # => 111
ARGF.getbyte # => 111
ARGF.getbyte # => 10
ARGF.getbyte # => 98
ARGF.getbyte # => 97
ARGF.getbyte # => 114
ARGF.getbyte # => 10
ARGF.getbyte # => nil
@see ARGF.class#getc, ARGF.class#gets... -
ARGF
. class # internal _ encoding -> Encoding | nil (6203.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...GF から読み込んだ文字列の内部エンコーディングを返します。
内部エンコーディングが指定されていない場合は nil を返します。
まだ読み込み処理を始めていない場合は Encoding.default_external を返します。
ARGF.class#set_encoding......$ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
Bignum
# magnitude -> Fixnum | Bignum (6203.0) -
self の絶対値を返します。
self の絶対値を返します。 -
Encoding
:: Converter # destination _ encoding -> Encoding (6203.0) -
変換先のエンコーディングを返します。
...変換先のエンコーディングを返します。
@return 変換先のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.destination_encoding #=> #<Encoding:EUC-JP>
//}... -
Encoding
:: Converter # source _ encoding -> Encoding (6203.0) -
変換元のエンコーディングを返します。
...変換元のエンコーディングを返します。
@return 変換元のエンコーディング
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.source_encoding #=> #<Encoding:UTF-8>
//}... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (6203.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding...