ライブラリ
- ビルトイン (266)
- benchmark (4)
- bigdecimal (1)
- csv (11)
- date (7)
- dbm (2)
- delegate (10)
- digest (1)
- drb (8)
-
drb
/ extserv (1) -
drb
/ gw (1) -
drb
/ timeridconv (2) - erb (1)
- fiber (1)
- fiddle (2)
- gdbm (2)
-
io
/ console (1) -
io
/ nonblock (1) -
irb
/ cmd / chws (2) -
irb
/ cmd / pushws (3) -
irb
/ cmd / subirb (4) -
irb
/ context (6) -
irb
/ extend-command (1) -
irb
/ output-method (6) - json (38)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / ostruct (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / symbol (1) -
json
/ add / time (1) - kconv (4)
- matrix (15)
- mkmf (4)
- monitor (2)
-
mutex
_ m (2) -
net
/ http (2) -
net
/ imap (5) -
net
/ pop (1) -
net
/ smtp (2) - observer (1)
- openssl (15)
- optparse (2)
- ostruct (4)
- pathname (2)
- pp (6)
- prettyprint (4)
- prime (4)
- pstore (5)
- psych (9)
- rake (4)
-
rdoc
/ code _ object (18) -
rdoc
/ generator / json _ index (1) -
rdoc
/ markup (1) -
rexml
/ document (13) -
rexml
/ parsers / pullparser (2) -
rinda
/ rinda (1) -
rinda
/ tuplespace (1) -
ripper
/ filter (3) - rss (3)
-
rubygems
/ package / tar _ header (1) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ timer (1) - sdbm (2)
- set (1)
- shell (5)
-
shell
/ builtin-command (1) -
shell
/ command-processor (4) -
shell
/ filter (5) -
shell
/ process-controller (12) - shellwords (1)
- socket (6)
- stringio (8)
- strscan (2)
- sync (2)
- thwait (2)
- timeout (2)
- tracer (1)
- weakref (2)
-
webrick
/ cgi (1) -
webrick
/ httpauth / authenticator (1) -
webrick
/ httpauth / basicauth (1) -
webrick
/ httpversion (2) -
webrick
/ log (1) -
webrick
/ server (1) - win32ole (13)
-
yaml
/ dbm (6) - zlib (3)
クラス
-
ARGF
. class (1) - Addrinfo (5)
- Array (43)
- BasicObject (10)
-
Benchmark
:: Job (4) - BigDecimal (2)
- Binding (5)
- CSV (4)
-
CSV
:: FieldInfo (3) -
CSV
:: Row (3) -
CSV
:: Table (1) - Class (2)
- Complex (2)
- DBM (2)
-
DRb
:: DRbIdConv (2) -
DRb
:: DRbObject (4) -
DRb
:: DRbServer (1) -
DRb
:: DRbUnknown (1) -
DRb
:: ExtServ (1) -
DRb
:: GW (1) -
DRb
:: TimerIdConv (2) - Date (7)
- DateTime (2)
- Delegator (7)
- ERB (1)
- Enumerator (8)
-
Enumerator
:: Lazy (3) -
Enumerator
:: Yielder (2) - Exception (1)
- Fiber (2)
-
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Pointer (1) -
File
:: Stat (2) - GDBM (2)
-
Gem
:: Package :: TarHeader (1) -
Gem
:: SpecFetcher (2) - Hash (5)
- IO (2)
-
IRB
:: Context (6) -
IRB
:: ExtendCommand :: ChangeWorkspace (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: IrbCommand (1) -
IRB
:: ExtendCommand :: Jobs (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: PopWorkspace (1) -
IRB
:: ExtendCommand :: PushWorkspace (1) -
IRB
:: ExtendCommand :: Workspaces (1) -
IRB
:: OutputMethod (5) -
IRB
:: StdioOutputMethod (1) -
JSON
:: Parser (2) -
JSON
:: State (21) - LocalJumpError (2)
- Matrix (12)
- Method (5)
- Module (9)
- NameError (1)
-
Net
:: HTTP (1) -
Net
:: HTTPGenericRequest (1) -
Net
:: IMAP (1) -
Net
:: IMAP :: Envelope (1) -
Net
:: IMAP :: FetchData (1) -
Net
:: IMAP :: ResponseCode (1) -
Net
:: IMAP :: UntaggedResponse (1) -
Net
:: POP3 (1) -
Net
:: SMTP (2) - NoMethodError (1)
- Numeric (2)
- Object (54)
-
OpenSSL
:: ASN1 :: ObjectId (5) -
OpenSSL
:: X509 :: Certificate (2) -
OpenSSL
:: X509 :: ExtensionFactory (5) -
OpenSSL
:: X509 :: Request (2) - OpenStruct (5)
- OptionParser (1)
- PP (1)
- PStore (4)
-
PStore
:: DummyMutex (1) - Pathname (2)
- PrettyPrint (4)
- Prime (1)
-
Prime
:: PseudoPrimeGenerator (3) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (2) -
RDoc
:: CodeObject (18) -
RDoc
:: Generator :: JsonIndex (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (1) -
REXML
:: Attribute (1) -
REXML
:: DocType (1) -
REXML
:: Element (1) -
REXML
:: Elements (2) -
REXML
:: Parent (8) -
REXML
:: Parsers :: PullEvent (2) -
Rake
:: TaskArguments (2) - Random (4)
- Range (20)
- Rational (1)
- Regexp (2)
-
Rinda
:: DRbObjectTemplate (1) -
Rinda
:: TupleEntry (1) -
Ripper
:: Filter (3) -
RubyVM
:: InstructionSequence (1) - SDBM (2)
- Set (1)
- Shell (5)
-
Shell
:: CommandProcessor (4) -
Shell
:: Concat (1) -
Shell
:: Filter (5) -
Shell
:: ProcessController (12) - SimpleDelegator (2)
- StopIteration (1)
- String (13)
- StringIO (8)
- StringScanner (2)
- Struct (7)
- Symbol (1)
- Thread (5)
-
Thread
:: Mutex (1) -
Thread
:: Queue (3) -
Thread
:: SizedQueue (6) - ThreadsWait (2)
- Time (2)
- TracePoint (4)
- Tracer (1)
- UNIXSocket (1)
- UnboundMethod (1)
- UncaughtThrowError (2)
- Vector (3)
-
WEBrick
:: BasicLog (1) -
WEBrick
:: CGI (1) -
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPAuth :: BasicAuth (1) -
WEBrick
:: HTTPVersion (2) - WIN32OLE (4)
-
WIN32OLE
_ EVENT (2) -
WIN32OLE
_ PARAM (1) -
WIN32OLE
_ TYPE (1) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIABLE (1) -
WIN32OLE
_ VARIANT (3) - WeakRef (2)
-
YAML
:: DBM (6) -
Zlib
:: Deflate (1) -
Zlib
:: GzipWriter (2)
モジュール
- Comparable (1)
- DublinCoreModel (3)
- Enumerable (52)
-
IRB
:: ExtendCommandBundle (1) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (14)
- MonitorMixin (2)
-
Mutex
_ m (2) - Observable (1)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
Rake
:: Cloneable (2) -
Sync
_ m (2) -
WEBrick
:: HTTPAuth :: Authenticator (1)
キーワード
- != (2)
- !~ (1)
- << (7)
- <=> (1)
- == (4)
- === (3)
- =~ (1)
- DelegateClass (1)
- Digest (1)
- JSON (1)
- [] (16)
- []= (1)
-
_ _ drbref (1) -
_ _ drburi (1) -
_ _ getobj _ _ (3) -
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ _ setobj _ _ (3) -
_ dump (1) -
_ getproperty (1) -
_ invoke (1) -
active
_ job? (1) -
active
_ jobs (1) -
active
_ jobs _ exist? (1) - add (1)
- adjugate (1)
- ajd (1)
- amjd (1)
-
arg
_ config (1) - args (1)
-
array
_ nl (1) -
array
_ nl= (1) - at (1)
- attr (1)
- begin (1)
- bind (1)
-
body
_ stream (1) - bsearch (3)
-
buffer
_ initial _ length (1) -
buffer
_ initial _ length= (1) - bytes (1)
- call (3)
-
check
_ circular? (1) -
chunk
_ while (1) - clamp (2)
-
class
_ eval (1) -
class
_ exec (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) - clone (2)
-
cofactor
_ expansion (1) - collect (3)
-
collect
_ concat (2) - column (2)
- comment (1)
- comment= (1)
- component (2)
- concat (2)
- configure (1)
- conj (2)
- conjugate (2)
- connect (1)
-
connect
_ from (1) -
connect
_ to (1) -
const
_ get (1) - context (2)
- convert (4)
- count (2)
- cover? (1)
-
create
_ extension (1) - cycle (2)
- data (2)
-
dc
_ subject (1) -
dc
_ subject= (1) -
dc
_ subjects (1) -
def
_ class (1) - default (1)
- delete (6)
-
delete
_ at (1) -
delete
_ field (1) -
delete
_ if (1) -
delete
_ observer (1) - depth (1)
- deq (2)
- detect (1)
-
dev
_ major (1) - devmajor (1)
- dig (3)
- disable (1)
-
document
_ children (1) -
document
_ children= (1) -
document
_ self (1) -
document
_ self= (1) - documented? (1)
- dup (1)
- each (6)
-
each
_ child (1) -
each
_ entry (1) -
each
_ with _ object (2) - element (2)
- enable (1)
- encode (3)
- end (1)
- enq (1)
- entries (1)
-
enum
_ for (2) - eql? (2)
- equal? (2)
- eval (2)
- evaluate (1)
- execute (9)
- exit (1)
-
exit
_ value (1) - feed (1)
- fetch (5)
-
fetch
_ spec (1) - field (1)
- find (1)
-
find
_ all (1) -
find
_ index (1) -
finish
_ all _ jobs (2) - first (4)
-
flat
_ map (2) - flush (1)
- force (1)
- freeze (1)
- front (2)
- frozen? (1)
- generate (2)
- grep (2)
-
grep
_ v (2) - group (1)
-
group
_ by (1) - handler (1)
- handler= (1)
- hash (1)
- header (1)
- include? (1)
- indent (1)
- indent= (1)
- index (1)
- initialize (1)
- inject (4)
- inspect (1)
-
inspect
_ mode (1) -
instance
_ eval (1) -
instance
_ exec (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - invert (1)
- invoke (1)
- irb (1)
-
irb
_ exit (1) - isjis (1)
- issjis (1)
- item (1)
- jd (1)
- jisx0301 (2)
- jj (1)
- jobs (2)
-
jobs
_ exist? (1) - join (8)
-
join
_ nowait (1) -
json
_ creatable? (1) - kill (1)
-
kill
_ job (1) -
laplace
_ expansion (1) - last (3)
-
last
_ value (1) - line (1)
- list (1)
- listen (1)
- ljust (1)
- ln (1)
-
load
_ specs (1) -
local
_ variable _ get (1) -
local
_ variable _ set (1) - logger (2)
-
long
_ name (1) - lookup (1)
- main (1)
- major (1)
- major= (1)
-
major
_ version (2) - map (2)
-
marshal
_ dump (2) -
marshal
_ load (2) - match (2)
- max (8)
-
max
_ by (1) -
max
_ nesting (1) - member? (1)
- merge (1)
-
method
_ missing (3) - methods (1)
- min (8)
-
min
_ by (1) - minmax (2)
-
minmax
_ by (1) - mjd (1)
-
module
_ eval (1) -
module
_ exec (1) -
mon
_ synchronize (1) -
mu
_ synchronize (1) - new (1)
- next (1)
- nonblock (1)
- none? (1)
-
object
_ group (1) -
object
_ id (1) -
object
_ nl (1) -
object
_ nl= (1) - oid (1)
-
on
_ XXX (1) -
on
_ default (1) - one? (1)
- open (1)
- output (1)
- pack (2)
- parameters (3)
- params (1)
- parent (1)
- parent= (1)
-
parent
_ file _ name (1) -
parent
_ name (1) - parse (2)
- partition (1)
- peek (1)
- pop (3)
- pp (1)
- ppx (1)
-
pretty
_ inspect (1) -
pretty
_ print (1) -
pretty
_ print _ cycle (1) -
pretty
_ print _ inspect (1) -
pretty
_ print _ instance _ variables (1) - print (3)
- printf (1)
- printn (1)
-
private
_ methods (1) -
protected
_ methods (1) -
psych
_ to _ yaml (1) -
psych
_ y (1) -
public
_ methods (1) -
public
_ send (2) - push (4)
- pushdir (1)
- putc (3)
- puts (3)
-
quirks
_ mode (1) -
quirks
_ mode= (1) -
quirks
_ mode? (1) - rand (3)
- rassoc (1)
- raw (1)
-
rcptto
_ list (1) -
rdev
_ major (1) - reason (1)
- receiver (3)
-
recv
_ io (1) - reduce (3)
- reject (12)
- reject! (8)
- reload (1)
-
remove
_ class _ variable (1) -
remove
_ classes _ and _ modules (1) -
remove
_ const (1) -
remove
_ instance _ variable (1) -
remove
_ methods _ etc (1) - report (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) - responses (1)
- result (1)
- resume (1)
-
return
_ value (1) - rjust (1)
- sample (2)
-
save
_ rounding _ mode (1) -
scan
_ full (1) -
search
_ full (1) - section (1)
- section= (1)
- select (4)
- self (1)
- send (2)
-
set
_ last _ value (1) - shelljoin (1)
- shift (4)
-
short
_ name (1) -
singleton
_ method _ removed (1) -
singleton
_ methods (1) - slice (1)
- slice! (1)
-
slice
_ when (2) - sn (1)
- sort (2)
-
sort
_ by (1) - source (1)
- space (1)
- space= (1)
-
space
_ before (1) -
space
_ before= (1) - start (3)
-
start
_ doc (1) -
start
_ job (1) -
stop
_ doc (1) - store (2)
- strftime (2)
- subject (3)
- subject= (2)
-
subject
_ certificate (1) -
subject
_ certificate= (1) -
subject
_ request (1) -
subject
_ request= (1) - sum (4)
-
sync
_ synchronize (1) - synchronize (5)
- syswrite (1)
- t (1)
- tag (1)
-
terminate
_ job (1) - text (2)
-
thread
_ variable _ get (1) - time (1)
- timeout (2)
-
to
_ a (4) -
to
_ ary (1) -
to
_ c (1) -
to
_ enum (2) -
to
_ h (1) -
to
_ id (2) -
to
_ int (1) -
to
_ json (21) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ obj (2) -
to
_ proc (1) -
to
_ regexp (1) -
to
_ ruby (1) -
to
_ s (1) -
to
_ str (1) -
to
_ value (1) -
to
_ yaml (1) - tojis (1)
- tokenize (1)
- tosjis (1)
-
trace
_ func (1) - transact (3)
- transaction (1)
- transfer (1)
- transform (1)
- transpose (1)
- trust (1)
-
unconverted
_ fields? (1) - unpack (1)
- unpack1 (1)
- unshift (2)
- untrust (1)
- untrusted? (1)
- value (4)
- values (1)
-
values
_ at (1) -
wait
_ all _ jobs _ execution (1) -
waiting
_ job? (1) -
waiting
_ jobs (1) -
waiting
_ jobs _ exist? (1) - width (1)
-
with
_ index (1) -
with
_ object (4) -
with
_ werror (2) - write (2)
-
write
_ nonblock (1) - xpopen (1)
- y (1)
- yield (1)
- zip (2)
- | (1)
検索結果
先頭5件
-
Complex
# clamp(range) -> object (604.0) -
@undef
@undef -
IO
# nonblock(bool = true) { . . . } -> object (604.0) -
ブロック実行中、一時的に self のブロックモードを変更します。 bool が真ならノンブロックモード、偽ならブロックモードになります。
ブロック実行中、一時的に self のブロックモードを変更します。
bool が真ならノンブロックモード、偽ならブロックモードになります。
@param bool 真を指定するとノンブロックモード、偽を指定するとブロックモードになります。 -
Method
# [](*args) -> object (604.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
メソッドオブジェクトに封入されているメソッドを起動します。
引数やブロックはそのままメソッドに渡されます。
self[] の形の呼び出しは通常のメソッド呼び出しに見た目を
近付けるためだけに用意されたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.met... -
Method
# call(*args) -> object (604.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
メソッドオブジェクトに封入されているメソッドを起動します。
引数やブロックはそのままメソッドに渡されます。
self[] の形の呼び出しは通常のメソッド呼び出しに見た目を
近付けるためだけに用意されたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.met... -
Method
# call(*args) { . . . } -> object (604.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
メソッドオブジェクトに封入されているメソッドを起動します。
引数やブロックはそのままメソッドに渡されます。
self[] の形の呼び出しは通常のメソッド呼び出しに見た目を
近付けるためだけに用意されたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.met... -
Module
# class _ eval(expr , fname = "(eval)" , lineno = 1) -> object (604.0) -
モジュールのコンテキストで文字列 expr またはモジュール自身をブロックパラメータとするブロックを 評価してその結果を返します。
モジュールのコンテキストで文字列 expr またはモジュール自身をブロックパラメータとするブロックを
評価してその結果を返します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ただし、ローカル変数は module_eval/class_eval の外側のスコープと共有します。
文字列が与えられた場合には、定数とクラス変数のスコープは自身のモジュール定義式内と同じスコープになります。
ブロックが与えられた場合には、定数とクラス変数のスコープはブロックの外側のスコープにな... -
Module
# class _ exec(*args) {|*vars| . . . } -> object (604.0) -
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ローカル変数、定数とクラス変数のスコープはブロックの外側のスコープになります。
@param args ブロックに渡す引数を指定します。
//emlist[例][ruby]{
class Thing
end
c = 1
Thing.class_exec{
def hello()
"Hello there!"
... -
Module
# const _ get(name , inherit = true) -> object (604.0) -
name で指定される名前の定数の値を取り出します。
name で指定される名前の定数の値を取り出します。
Module#const_defined? と違って Object を特別扱いすることはありません。
@param name 定数名。String か Symbol で指定します。
完全修飾名を指定しなかった場合はモジュールに定義されている
name で指定される名前の定数の値を取り出します。
@param inherit false を指定するとスーパークラスや include したモジュールで
定義された定数は対象にはなりません。
@raise NameError ... -
Module
# module _ eval(expr , fname = "(eval)" , lineno = 1) -> object (604.0) -
モジュールのコンテキストで文字列 expr またはモジュール自身をブロックパラメータとするブロックを 評価してその結果を返します。
モジュールのコンテキストで文字列 expr またはモジュール自身をブロックパラメータとするブロックを
評価してその結果を返します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ただし、ローカル変数は module_eval/class_eval の外側のスコープと共有します。
文字列が与えられた場合には、定数とクラス変数のスコープは自身のモジュール定義式内と同じスコープになります。
ブロックが与えられた場合には、定数とクラス変数のスコープはブロックの外側のスコープにな... -
Module
# module _ exec(*args) {|*vars| . . . } -> object (604.0) -
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
モジュールのコンテキストで評価するとは、実行中そのモジュールが self になるということです。
つまり、そのモジュールの定義式の中にあるかのように実行されます。
ローカル変数、定数とクラス変数のスコープはブロックの外側のスコープになります。
@param args ブロックに渡す引数を指定します。
//emlist[例][ruby]{
class Thing
end
c = 1
Thing.class_exec{
def hello()
"Hello there!"
... -
Shell
# kill(signal , job) -> Integer (604.0) -
@todo
@todo
ジョブにシグナルを送ります。
@param signal
@param job -
Shell
:: Concat # each(rs = nil) {|job| . . . } (604.0) -
@todo
@todo -
WIN32OLE
# _ invoke(dispid , args , types) -> object | nil (604.0) -
DISPIDとパラメータの型を指定してオブジェクトのメソッドを呼び出します。
DISPIDとパラメータの型を指定してオブジェクトのメソッドを呼び出します。
呼び出すメソッドのインターフェイスを事前に知っている場合に、DISPIDとパ
ラメータの型を指定してメソッドを呼び出します。
このメソッドは引数の変換方法をプログラマが制御できるようにすることと、
COMアーリーバインディングを利用して外部プロセスサーバとのラウンドトリッ
プを減らして処理速度を向上させることを目的としたものです。後者の目的に
ついては、DLLの形式で型情報(TypeLib)を提供しているサーバに対してはあ
まり意味を持ちません。そのため、型の高精度な制御が不要な場合は、直接メ
ソッド名を指定した... -
WIN32OLE
# invoke(name , *args) -> object | nil (604.0) -
メソッド名を指定してオブジェクトのメソッドを呼び出します。
メソッド名を指定してオブジェクトのメソッドを呼び出します。
OLEオートメーションサーバのメソッドを動的に呼び出したい場合に利用します。
なお、OLEオートメーションの仕様により、メソッド名の大文字、小文字は区別
されません。
@param name メソッド名を文字列またはシンボルで指定します。
@param args メソッドの引数を指定します。また、最後の引数にHashを
与えることで、名前付き引数を指定できます。この場合、キーに
文字列またはシンボルでパラメータ名、値に引数を指定します。
@return メソッドの返り値。ただし返り... -
WIN32OLE
# method _ missing(id , *args) -> object | nil (604.0) -
WIN32OLE#invokeメソッドを実行します。
WIN32OLE#invokeメソッドを実行します。
WIN32OLEのインスタンスに対して、このリファレンスに明記されていないメソッ
ドを呼び出した場合、OLEオートメーションサーバのメソッド(プロパティ)呼
び出しと解釈します。
@param id メソッド名をシンボルで指定します。
@param args メソッドの引数を指定します。
@return メソッドの返り値。ただし返り値を持たないメソッドの場合はnil。
@raise RuntimeError idが有効なシンボルではありません。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失... -
YAML
:: DBM # select { . . . } -> [[String , object]] (604.0) -
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に 格納して返します。ブロックが与えられなかった場合は、keys に対応する値を 配列に格納して返します。
ブロックを評価して真になった要素のみを [キー, 値] から構成される配列に
格納して返します。ブロックが与えられなかった場合は、keys に対応する値を
配列に格納して返します。
@param keys キーを文字列で指定します。複数指定することができます。
ブロックを与えるかどうかで戻り値が異なる事に注意してください。
@see YAML::DBM#values_at -
YAML
:: DBM # shift -> [String , object] (604.0) -
データベース中のキー、値を一つ取り出し、データベースから削除します。
データベース中のキー、値を一つ取り出し、データベースから削除します。
[キー, 値]を返します。取得される要素の順番は保証されません。 -
YAML
:: DBM # to _ a -> [[String , object]] (604.0) -
キーと値のペアを配列に変換して返します。
キーと値のペアを配列に変換して返します。 -
CSV
:: FieldInfo # index -> Integer (376.0) -
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.index
Date.parse(field)
end
p csv.first
# => 0
# => 1
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s... -
CSV
:: FieldInfo # line -> Integer (376.0) -
行番号を返します。
行番号を返します。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2,date3\n2018-07-09,2018-07-10\n2018-08-09,2018-08-10", headers: true)
csv.convert do |field,field_info|
p field_info.line
Date.parse(field)
end
p csv.to_a
# => 2
# => 2
# => 3
# => 3
# => [#<CSV::Row "date1":#<Date: 2018-07...