別のキーワード
種類
ライブラリ
- ビルトイン (1163)
- benchmark (48)
-
cgi
/ core (12) - csv (72)
- date (76)
- etc (12)
- fiddle (48)
-
fiddle
/ import (12) - fileutils (24)
-
io
/ console (24) -
irb
/ context (36) - json (36)
-
json
/ add / date _ time (12) - logger (1)
- matrix (50)
-
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (24)
-
net
/ ftp (48) - objspace (24)
- observer (12)
- openssl (36)
- pathname (24)
- profiler (6)
- psych (26)
-
rake
/ packagetask (12) -
rexml
/ document (12) -
rubygems
/ dependency _ list (12) - socket (468)
- stringio (12)
- strscan (24)
- thwait (6)
- time (96)
- tracer (12)
- tsort (12)
- un (12)
-
webrick
/ log (12) - win32ole (60)
- zlib (24)
クラス
-
ARGF
. class (60) - Array (155)
-
Benchmark
:: Tms (24) - CGI (12)
- CSV (48)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Data (15)
- Date (2)
- DateTime (86)
- Encoding (48)
-
Encoding
:: Converter (60) -
Enumerator
:: Lazy (12) -
Fiddle
:: Pointer (48) -
Gem
:: DependencyList (12) - IO (160)
-
IRB
:: Context (36) - Integer (48)
-
JSON
:: State (12) - MatchData (60)
- Matrix (36)
- Method (12)
- Module (36)
-
Net
:: FTP (48) - Numeric (12)
- Object (74)
-
OpenSSL
:: PKey :: EC :: Group (24) - Pathname (24)
- Proc (24)
-
REXML
:: DocType (12) -
Rake
:: PackageTask (12) -
RubyVM
:: InstructionSequence (36) - Socket (228)
-
Socket
:: Option (12) - String (30)
- StringIO (12)
- StringScanner (24)
- Struct (22)
- Symbol (12)
- SystemCallError (12)
- Thread (24)
- Time (134)
- Tracer (12)
- Vector (14)
-
WEBrick
:: BasicLog (12) - WIN32OLE (24)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ PARAM (12) -
Zlib
:: GzipReader (24)
モジュール
- Benchmark (24)
- Etc (12)
-
Fiddle
:: Importer (12) - FileUtils (24)
-
GC
:: Profiler (72) - JSON (24)
- Kernel (121)
-
MiniTest
:: Assertions (2) - ObjectSpace (72)
-
OpenSSL
:: ASN1 (12) - Process (12)
-
Profiler
_ _ (6) - Psych (14)
-
RubyVM
:: AbstractSyntaxTree (10) -
Socket
:: Constants (228) - TSort (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - === (36)
- Application (1)
- ArgumentError (12)
- ErrNoFinishedThread (6)
- FORMAT (24)
-
IPV6
_ RTHDR (24) -
IPV6
_ RTHDRDSTOPTS (24) -
IP
_ MTU (24) -
IP
_ ROUTER _ ALERT (24) -
IP
_ TOS (24) -
MSG
_ COMPAT (24) -
MSG
_ EOF (24) -
MSG
_ FLUSH (24) -
MSG
_ OOB (24) - Marshal フォーマット (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
NI
_ NOFQDN (24) - Observable (12)
- Profiler (12)
- Ruby用語集 (12)
-
SJIS
_ SOFTBANK (12) -
SJIS
_ SoftBank (12) -
SO
_ BROADCAST (24) -
SO
_ OOBINLINE (24) -
SO
_ PEERCRED (24) -
SO
_ PEERNAME (24) -
TCP
_ KEEPCNT (24) -
TCP
_ LINGER2 (24) -
TCP
_ NOPUSH (24) -
TCP
_ SYNCNT (24) -
TCP
_ WINDOW _ CLAMP (24) -
UTF8
_ SOFTBANK (12) -
UTF8
_ SoftBank (12) - [] (46)
- []= (50)
- advise (12)
-
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
attribute
_ of (12) - autoload (24)
- autoload? (12)
-
base
_ label (12) - begin (12)
- benchmark (12)
- binread (12)
- binwrite (24)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
-
check
_ sizeof (24) - chmod (12)
- chr (24)
- civil (12)
- class (12)
- coerce (12)
- cofactor (24)
-
cofactor
_ expansion (12) - combination (24)
- commercial (12)
-
const
_ set (12) -
copy
_ stream (12) - curry (24)
-
deconstruct
_ keys (17) - digits (24)
- disable (12)
-
each
_ object (48) - enable (12)
- enabled? (12)
- end (12)
-
end
_ with? (6) - eof (36)
- eof? (36)
- exec (12)
- fatal (12)
- fetch (36)
-
fetch
_ values (2) - format (12)
- generate (12)
- getlocal (12)
- gets (12)
-
handle
_ interrupt (12) - httpdate (24)
-
ignore
_ eof (12) -
ignore
_ eof= (12) -
ignore
_ eof? (12) -
instance
_ of? (12) - ioflush (12)
-
is
_ a? (12) - iso8601 (12)
- jd (12)
-
kind
_ of? (12) - label (12)
- lambda (18)
-
laplace
_ expansion (12) - linger (12)
- localtime (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
net
/ smtp (12) - new (78)
-
new
_ offset (12) - off (12)
-
off
_ event (12) - offset (24)
-
offset
_ vtbl (12) - oflush (12)
-
ole
_ activex _ initialize (12) -
ole
_ show _ help (12) - ordinal (12)
- output? (12)
- pack (21)
- pack テンプレート文字列 (12)
- permutation (24)
- pointer= (12)
- pos= (12)
- pread (8)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - print (12)
-
print
_ profile (6) - proc (19)
- pwrite (8)
-
raw
_ data (12) -
rb
_ time _ timespec _ new (10) -
rdoc
/ generator / json _ index (12) - read (12)
- readbyte (12)
- readchar (24)
- readline (24)
-
remove
_ entry _ secure (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - report (12)
- result (12)
- retrbinary (24)
- rfc2822 (24)
- rfc822 (24)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ security (12) -
safe
_ load (14) - seek (48)
-
set
_ generator (12) - sizeof (12)
-
source
_ location (12) -
spec
_ predecessors (12) -
start
_ with? (6) - storbinary (24)
- strftime (12)
- sysconf (12)
- sysseek (12)
-
test
/ unit (1) -
to
_ f (12) -
to
_ json (12) - traverse (12)
-
tsort
_ each _ child (12) - unpack (12)
- unparse (12)
-
with
_ index (12) - write (24)
- xmlschema (12)
-
yaml
_ tag (12) - クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 変数と定数 (4)
検索結果
先頭5件
-
String
# to _ f -> Float (12.0) -
文字列を 10 進数表現と解釈して、浮動小数点数 Float に変換します。
...000).to_f # => Infinity
# warning: Float 10101010101010101010... out of range
//}
なお、このメソッドとは逆に、数値を文字列に変換するには
Kernel.#sprintf, String#%, Integer#to_s
を使用します。
@see String#hex, String#oct, String#to_i,
Kernel.#Integer, Kernel... -
SystemCallError
. ===(other) -> bool (12.0) -
other が SystemCallError のサブクラスのインスタンスで、 かつ、other.errno の値が self::Errno と同じ場合に真を返します。そうでない場合は偽を返します。
...o の値が self::Errno と同じ場合に真を返します。そうでない場合は偽を返します。
従って、特に other が self.kind_of?(other) である場合には Module#=== と同様に真を返します。
その他に、 Errno::EXXX::Errno == Errno::EYYY::Errno である場合......か作られないようになりました。そのため現在はこのメソッドは実質上 Module#=== と同じ意味しかありません。
@param other 任意のオブジェクト
例
p Errno::EAGAIN::Errno
p Errno::EWOULDBLOCK::Errno
begin
raise Errno::EAGAIN, "pseudo e... -
Thread
# [](name) -> object | nil (12.0) -
name に対応したスレッドに固有のデータを取り出します。 name に対応するスレッド固有データがなければ nil を返し ます。
...たスレッドに固有のデータを取り出します。
name に対応するスレッド固有データがなければ nil を返し
ます。
@param name スレッド固有データのキーを文字列か Symbol で指定します。
//emlist[例][ruby]{
[
Thread.new { Thread.current["nam.......yield
}
}
meth(2) {
f.resume
}
f.resume
p Thread.current[:name]
# => nil if fiber-local
# => 2 if thread-local (The value 2 is leaked to outside of meth method.)
//}
Fiber を切り替えても同じ変数を返したい場合は
Thread#thread_variable_get と Thread#thread_variable_set
を使... -
Time
# httpdate -> String (12.0) -
2616 で定義されている HTTP-date の rfc1123-date 形式の文字列を 返します。
...2616 で定義されている HTTP-date の rfc1123-date 形式の文字列を
返します。
@return 以下の形式の文字列を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss GMT
//}
注意: 結果はいつも UTC (GMT) です。
使用例
require 'time'
is... -
Time
# rfc2822 -> String (12.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...2822 で定義されている date-time として表現される形式の文字列を
返します。
@return 以下の形式の文字列を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場... -
Time
# rfc822 -> String (12.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...2822 で定義されている date-time として表現される形式の文字列を
返します。
@return 以下の形式の文字列を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場... -
WIN32OLE
# ole _ activex _ initialize -> nil (12.0) -
ActiveXコントロール用の初期化を行います。
...すべてエラーとなります。
@raise WIN32OLERuntimeError オブジェクトがActiveXコントロールの永続化イ
ンターフェイスを持たない場合に通知します。
obj = WIN32OLE.new("ProgID_or_GUID_of_ActiveX_Control")
obj.ole_activex_i... -
変数と定数 (12.0)
-
変数と定数 * local * instance * class * class_var_scope * global * pseudo * const * prio
...言は有効
p defined?(v) # => "local-variable"
p v # => nil
//}
===[a:instance] インスタンス変数
//emlist[例][ruby]{
@foobar
//}
`@'で始まる変数はインスタンス変数であり、特定の
オブジェクトに所属しています。インスタンス変数は......ンスタンス変数を参照した時の値はnilです。
===[a:class] クラス変数
//emlist[例][ruby]{
class Foo
@@foo = 1
def bar
puts @@foo
end
end
//}
@@で始まる変数はクラス変数です。クラス変数はクラス定義
の中で定義され、クラスの特異......に例外 RuntimeError が発生します。
//emlist[][ruby]{
class Foo
end
class Bar < Foo
@@v = :bar
end
class Foo
@@v = :foo
end
class Bar
p @@v #=> RuntimeError (class variable @@v of Bar is overtaken by Foo)
end
//}
====[a:class_var_scope] クラス変数のスコープ
ク...