403件ヒット
[401-403件を表示]
(0.048秒)
ライブラリ
- ビルトイン (200)
- csv (11)
- date (1)
- delegate (2)
- drb (3)
-
drb
/ extserv (2) - erb (1)
- fiber (1)
- fiddle (1)
-
irb
/ xmp (1) - json (10)
-
net
/ ftp (2) -
net
/ http (3) -
net
/ pop (2) -
net
/ smtp (2) - objspace (2)
- openssl (17)
- ostruct (3)
- prettyprint (2)
- prime (4)
- pstore (3)
- psych (4)
- rake (1)
-
rdoc
/ code _ object (1) - resolv (2)
-
rexml
/ document (1) -
ripper
/ sexp (2) - shell (3)
-
shell
/ command-processor (1) -
shell
/ filter (2) - socket (11)
- stringio (3)
- strscan (2)
- tempfile (3)
- win32ole (76)
- zlib (4)
クラス
- Array (2)
- BasicObject (13)
- CSV (6)
-
CSV
:: Row (3) -
CSV
:: Table (1) - Class (4)
-
DRb
:: DRbObject (2) -
DRb
:: DRbServer (1) -
DRb
:: ExtServ (2) - Date (1)
- Dir (6)
- ERB (1)
- Enumerator (11)
-
Enumerator
:: Yielder (2) - Fiber (3)
-
Fiddle
:: Pointer (1) - File (3)
- Hash (8)
- IO (26)
-
JSON
:: Parser (2) -
JSON
:: State (4) - LocalJumpError (1)
- Method (7)
- Module (12)
- NameError (1)
-
Net
:: FTP (2) -
Net
:: HTTP (2) -
Net
:: HTTPGenericRequest (1) -
Net
:: POP3 (2) -
Net
:: SMTP (2) - Object (39)
-
OpenSSL
:: ASN1 :: ObjectId (8) -
OpenSSL
:: X509 :: Attribute (2) -
OpenSSL
:: X509 :: Name (5) - OpenStruct (3)
- PStore (3)
- PrettyPrint (2)
- Prime (4)
- Proc (2)
-
Psych
:: ScalarScanner (1) -
RDoc
:: CodeObject (1) -
REXML
:: Element (1) -
Rake
:: TaskArguments (1) - Random (3)
- Regexp (2)
-
Resolv
:: DNS (2) - Ripper (2)
- Shell (3)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (2) - SimpleDelegator (1)
- Socket (3)
- StopIteration (1)
- String (2)
- StringIO (3)
- StringScanner (2)
- Struct (8)
- Tempfile (3)
- Thread (5)
-
Thread
:: Mutex (1) -
Thread
:: Queue (3) -
Thread
:: SizedQueue (3) - TracePoint (1)
- UNIXServer (4)
- UNIXSocket (4)
- WIN32OLE (8)
-
WIN32OLE
_ METHOD (18) -
WIN32OLE
_ PARAM (7) -
WIN32OLE
_ TYPE (21) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIABLE (7) -
WIN32OLE
_ VARIANT (3) - XMP (1)
-
Zlib
:: GzipReader (2) -
Zlib
:: GzipWriter (2)
モジュール
- Enumerable (8)
-
GC
:: Profiler (1) - JSON (3)
-
JSON
:: Generator :: GeneratorMethods :: Object (1) - Kernel (12)
- Marshal (4)
- ObjectSpace (9)
-
OpenSSL
:: ASN1 (2) - Psych (2)
キーワード
- ! (1)
- != (1)
-
$ stdin (1) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - < (1)
- << (1)
- <=> (3)
- == (3)
- === (2)
- ARGV (1)
- CSV (1)
- Converters (1)
-
DEFAULT
_ OBJECT _ TYPE (1) - DelegateClass (1)
- Float (1)
- HeaderConverters (1)
- Integer (1)
-
MAJOR
_ VERSION (1) -
MINOR
_ VERSION (1) - Marshal フォーマット (1)
- Method (1)
-
NEWS for Ruby 2
. 4 . 0 (1) -
OBJECT
_ TYPE _ TEMPLATE (1) - ObjectId (2)
- Rational (1)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (1)
- String (1)
- Thread (1)
- [] (9)
- []= (1)
-
_ _ drbref (1) -
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ dump (1) -
_ getproperty (1) -
_ invoke (1) - allocate (1)
-
allocation
_ sourcefile (1) -
allocation
_ sourceline (1) -
body
_ stream (1) - call (2)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ set (1) -
connect
_ nonblock (1) -
const
_ load (1) - context (1)
-
create
_ id (1) -
def
_ class (1) - default (3)
-
default
_ event _ sources (1) -
default
_ ole _ types (1) -
define
_ finalizer (2) - delete (3)
- deq (2)
- dig (2)
- dispid (1)
- display (1)
- dump (4)
- each (8)
-
each
_ object (4) -
enum
_ for (2) - equal? (1)
- event? (1)
-
event
_ interface (1) -
exit
_ value (1) - extend (1)
- extended (1)
- feed (1)
- fetch (1)
- field (1)
-
for
_ fd (1) - format (1)
- front (2)
- generate (2)
- guid (2)
-
handle
_ interrupt (1) - helpcontext (2)
- helpfile (2)
-
implemented
_ ole _ types (1) - initialize (1)
-
initialize
_ copy (1) - input? (1)
- inspect (3)
- instance (2)
-
instance
_ eval (2) -
instance
_ exec (1) -
instance
_ method (1) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - invkind (1)
- invoke (1)
-
invoke
_ kind (1) - irb (1)
-
irb
/ completion (1) -
is
_ a? (1) -
kind
_ of? (1) - lambda (2)
-
library
_ name (1) - ln (1)
-
long
_ name (1) - loop (2)
-
major
_ version (2) -
marshal
_ dump (1) - match (2)
- max (4)
-
method
_ missing (1) - methods (1)
- min (4)
-
minor
_ version (2) -
module
_ eval (2) -
module
_ exec (1) - name (5)
-
net
/ smtp (1) -
new
_ with _ uri (1) -
next
_ values (1) -
object
_ nl (1) -
offset
_ vtbl (1) - oid (1)
-
ole
_ classes (1) -
ole
_ methods (1) -
ole
_ type (3) -
ole
_ type _ detail (1) -
ole
_ typelib (2) -
ole
_ types (1) - open (24)
- optional? (1)
- parameters (1)
- params (1)
- parse (1)
- path (1)
-
peek
_ values (1) -
pending
_ interrupt? (1) - pipe (8)
- pop (2)
- popen (14)
- proc (2)
- progid (1)
- pushd (1)
- pushdir (1)
- rand (3)
- rdoc (1)
- receiver (2)
- register (1)
-
remove
_ instance _ variable (1) - replace (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) - result (2)
- resume (1)
-
return
_ type (1) -
return
_ type _ detail (1) -
return
_ value (1) -
return
_ vtype (1) -
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
scan
_ full (1) -
search
_ full (1) - select (2)
- send (2)
- sexp (1)
-
sexp
_ raw (1) - shift (3)
-
short
_ name (1) -
singleline
_ format (1) -
singleton
_ class (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) -
size
_ opt _ params (1) -
size
_ params (1) - sn (1)
-
source
_ ole _ types (1) -
src
_ type (1) - start (6)
- sum (2)
- synchronize (1)
- tainted? (1)
-
thread
_ variable _ get (1) -
to
_ a (1) -
to
_ ary (1) -
to
_ enum (2) -
to
_ h (2) -
to
_ hash (2) -
to
_ int (1) -
to
_ json (1) -
to
_ proc (1) -
to
_ regexp (1) -
to
_ s (7) -
to
_ str (1) -
to
_ value (1) - tokenize (1)
- transact (3)
- transaction (1)
- transfer (1)
- typekind (1)
-
undefine
_ finalizer (1) - unix (2)
- unparse (1)
- value (3)
- values (1)
-
values
_ at (2) -
variable
_ kind (1) - variables (1)
- varkind (1)
- version (1)
- visible? (4)
-
with
_ index (2) -
with
_ object (2) - yaml (1)
-
yaml
_ tag (1) - yield (2)
- | (1)
- クラス/メソッドの定義 (1)
- スレッド (1)
検索結果
-
Thread (73.0)
-
スレッドを表すクラスです。スレッドとはメモリ空間を共有して同時に実行される制御の流れです。 Thread を使うことで並行プログラミングが可能になります。
スレッドを表すクラスです。スレッドとはメモリ空間を共有して同時に実行される制御の流れです。
Thread を使うことで並行プログラミングが可能になります。
=== 実装
ネイティブスレッドを用いて実装されていますが、
現在の実装では Ruby VM は Giant VM lock (GVL) を有しており、同時に実行される
ネイティブスレッドは常にひとつです。
ただし、IO 関連のブロックする可能性があるシステムコールを行う場合には
GVL を解放します。その場合にはスレッドは同時に実行され得ます。
また拡張ライブラリから GVL を操作できるので、複数のスレッドを
同時に実行するような拡... -
スレッド (73.0)
-
スレッド スレッドとはメモリ空間を共有して同時に実行される制御の流れです。 Ruby ではスレッドはThread クラスのインスタンスとして表されます。
スレッド
スレッドとはメモリ空間を共有して同時に実行される制御の流れです。
Ruby ではスレッドはThread クラスのインスタンスとして表されます。
=== 実装
ネイティブスレッドを用いて実装されていますが、
現在の実装では Ruby VM は Giant VM lock (GVL) を有しており、同時に実行される
ネイティブスレッドは常にひとつです。
ただし、IO 関連のブロックする可能性があるシステムコールを行う場合には
GVL を解放します。その場合にはスレッドは同時に実行され得ます。
また拡張ライブラリから GVL を操作できるので、複数のスレッドを
同時に実行するような拡... -
CSV (55.0)
-
このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。
このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。
=== 読み込み
//emlist[][ruby]{
require "csv"
csv_text = <<~CSV_TEXT
Ruby,1995
Rust,2010
CSV_TEXT
IO.write "sample.csv", csv_text
# ファイルから一行ずつ
CSV.foreach("sample.csv") do |row|
p row
end
# => ["Ruby", "1995"]
# ["Rust", "2010"]
# ファイルから一度に
p CSV.r...