3697件ヒット
[3601-3697件を表示]
(0.083秒)
ライブラリ
- ビルトイン (1818)
- benchmark (12)
-
cgi
/ core (72) - csv (48)
- delegate (12)
- erb (36)
- fiber (8)
- fiddle (36)
- getoptlong (36)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) -
minitest
/ mock (1) -
minitest
/ spec (1) -
minitest
/ unit (3) - mkmf (60)
-
net
/ ftp (96) - observer (12)
- openssl (36)
- optparse (324)
- pathname (120)
- rake (288)
-
rdoc
/ rdoc (12) - resolv (12)
-
rexml
/ document (36) -
rexml
/ sax2listener (12) - ripper (24)
-
rubygems
/ command (72) -
rubygems
/ command _ manager (24) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ doc _ manager (12) -
rubygems
/ gem _ runner (12) -
rubygems
/ user _ interaction (108) - set (18)
- win32ole (120)
- zlib (12)
クラス
-
ARGF
. class (912) - BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- CSV (24)
-
CSV
:: Row (24) - Class (12)
- Complex (48)
- Data (3)
- Date (12)
- DateTime (12)
- Delegator (12)
- ERB (36)
- Enumerator (72)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (66) - Exception (12)
- Fiber (24)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (12) - Float (36)
-
Gem
:: Command (72) -
Gem
:: CommandManager (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: DocManager (12) -
Gem
:: GemRunner (12) -
Gem
:: StreamUI (12) - GetoptLong (36)
- Hash (24)
- IO (48)
- Method (92)
-
MiniTest
:: Mock (1) -
MiniTest
:: Unit (2) - Module (24)
-
Net
:: FTP (96) - NoMethodError (12)
- Numeric (36)
- Object (145)
- OpenStruct (12)
- OptionParser (204)
-
OptionParser
:: ParseError (24) - Pathname (120)
- Proc (48)
-
RDoc
:: Options (12) -
RDoc
:: RDoc (12) -
REXML
:: Attribute (12) -
REXML
:: Instruction (24) -
Rake
:: Task (60) -
Rake
:: TaskArguments (108) - Range (12)
- Rational (24)
- Regexp (12)
-
Resolv
:: DNS :: Resource :: IN :: SRV (12) - Ripper (24)
-
RubyVM
:: InstructionSequence (12) - String (30)
- Struct (12)
- Symbol (12)
- Thread (24)
- Time (12)
- UnboundMethod (12)
- WIN32OLE (72)
-
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (60) -
CGI
:: QueryExtension :: Value (12) - Enumerable (103)
- FileUtils (24)
-
Gem
:: UserInteraction (96) - Kernel (120)
-
MiniTest
:: Assertions (1) - Observable (12)
-
OpenSSL
:: Buffering (24) -
OpenSSL
:: SSL :: SocketForwarder (12) -
OptionParser
:: Arguable (96) -
REXML
:: SAX2Listener (12) -
Rake
:: TaskManager (36)
キーワード
- % (12)
- << (12)
- === (32)
- [] (60)
-
_ _ send _ _ (24) -
_ dump (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ extra _ args (12) -
add
_ trace _ func (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) - angle (36)
-
arg
_ config (12) -
arg
_ description (12) -
arg
_ names (12) - args (48)
- arguments (36)
- argv (12)
- ask (12)
-
ask
_ yes _ no (12) -
assert
_ raises (1) -
bind
_ call (12) - binmode (12)
- binmode? (12)
- binread (12)
- bytes (14)
- call (60)
- chars (14)
-
choose
_ from _ list (12) -
class
_ exec (12) - close (12)
- closed? (12)
- codepoints (14)
- concat (9)
- convert (12)
-
create
_ body (12) -
create
_ makefile (12) -
create
_ rule (12) -
def
_ class (12) -
def
_ module (12) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) -
define
_ task (12) - dir (24)
-
dir
_ config (12) - document (12)
- each (134)
-
each
_ byte (24) -
each
_ char (24) -
each
_ codepoint (24) -
each
_ line (72) -
each
_ option (12) -
each
_ with _ index (24) -
each
_ with _ object (12) - entries (12)
-
enum
_ for (48) - eof (12)
- eof? (12)
- execute (12)
- expect (1)
-
external
_ encoding (12) - fcntl (36)
- file (24)
-
file
_ create (12) - filename (12)
- fileno (12)
- fnmatch (12)
- fnmatch? (12)
- force (12)
- format (12)
-
get
_ one _ optional _ argument (12) - getbyte (12)
- getc (12)
- getopts (24)
- gets (36)
-
handle
_ arguments (12) - handles? (12)
-
has
_ key? (12) - help (12)
- include? (12)
- initialize (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (30)
-
instance
_ exec (12) -
internal
_ encoding (12) - invkind (12)
- invoke (36)
- ioctl (24)
- join (12)
- key? (12)
- keys (12)
- lineno (12)
- lineno= (12)
- lines (42)
- list (24)
- lookup (12)
- ls (24)
-
marshal
_ dump (12) -
method
_ missing (36) - mkdir (12)
- modified? (12)
-
module
_ exec (12) - multitask (12)
-
must
_ raise (1) - name (12)
- names (12)
- namespace (12)
- new (12)
-
new
_ scope (12) -
notify
_ observers (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) -
on
_ head (12) -
on
_ tail (12) - order (48)
- order! (48)
- owner (12)
- parse (36)
- parse! (24)
- path (12)
- permute (24)
- permute! (24)
- phase (36)
- pos (12)
- pos= (12)
- prepend (9)
- print (36)
- printf (48)
-
process
_ args (13) -
processing
_ instruction (12) -
progress
_ reporter (12) -
public
_ send (24) - push (12)
- putc (12)
- puts (12)
- read (24)
-
read
_ nonblock (12) - readbyte (12)
- readchar (12)
- readline (36)
- readlines (48)
- readpartial (12)
- receiver (12)
- recover (12)
-
resolve
_ args (12) - resume (12)
- rewind (12)
- ruby (12)
- rule (12)
- run (25)
-
run
_ rdoc (12) -
safe
_ ln (12) - say (12)
- seek (12)
- send (24)
-
set
_ arg _ names (12) -
set
_ encoding (36) -
set
_ trace _ func (12) - setproperty (12)
- shift (12)
- site (12)
- skip (12)
- src (12)
- sysopen (12)
- target (24)
- target= (12)
- task (12)
- tell (12)
-
terminate
_ interaction (12) -
to
_ a (60) -
to
_ enum (48) -
to
_ h (19) -
to
_ hash (12) -
to
_ i (12) -
to
_ io (12) -
to
_ json (144) -
to
_ s (30) -
to
_ set (24) -
to
_ write _ io (12) - transfer (12)
- warn (12)
- warning (12)
- with (3)
-
with
_ defaults (12) -
with
_ index (18) -
with
_ object (12) - write (12)
- yield (12)
検索結果
先頭5件
-
Enumerator
# each { . . . } -> object (13.0) -
生成時のパラメータに従ってブロックを繰り返します。 *args を渡した場合は、生成時のパラメータ内引数末尾へ *args を追加した状態で繰り返します。 ブロック付きで呼び出された場合は、 生成時に指定したイテレータの戻り値をそのまま返します。
...します。
*args を渡した場合は、生成時のパラメータ内引数末尾へ *args を追加した状態で繰り返します。
ブロック付きで呼び出された場合は、
生成時に指定したイテレータの戻り値をそのまま返します。
@param args 末尾へ追......, world!".to_enum(:scan).each(/\w+/).to_a # => ["Hello", "world"]
obj = Object.new
def obj.each_arg(a, b=:b, *rest)
yield a
yield b
yield rest
:method_returned
end
enum = obj.to_enum :each_arg, :a, :x
enum.each.to_a # => [:a, :x, []]
enum.each.equal?(enum) # =>... -
Hash
# [](key) -> object | nil (13.0) -
key に関連づけられた値を返します。
..."all"}
p h[:ab] #=> "some"
p h[:ef] #=> nil
h1 = Hash.new("default value")
p h1[:non] #=> "default value"
h2 = Hash.new {|*arg| arg}
p h2[:non] #=> [{}, :non]
//}
@see Hash.new, Hash#fetch,Hash#values_at,Hash#key?, Hash#default, Hash#default_proc... -
Hash
# shift -> [object , object] | nil (13.0) -
ハッシュからキーが追加された順で先頭の要素をひとつ取り除き、 [key, value]という配列として返します。
..., "all"]
p h #=> {}
p h.shift #=> nil
h1 = Hash.new("default value")
p h1 #=> {}
p h1.shift #=> "default value"
h2 = Hash.new {|*arg| arg}
p h2 #=> {}
p h2.shift #=> [{}, nil]
//}
@see Array#shift......#=> [:cd, "all"]
p h #=> {}
p h.shift #=> nil
h1 = Hash.new("default value")
p h1 #=> {}
p h1.shift #=> nil
h2 = Hash.new {|*arg| arg}
p h2 #=> {}
p h2.shift #=> nil
//}
@see Array#shift... -
Method
# inspect -> String (13.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
以下の形式の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクト......。
klass2 は、実際にそのメソッドを定義しているクラス/モジュール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
/... -
Method
# to _ s -> String (13.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
以下の形式の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクト......。
klass2 は、実際にそのメソッドを定義しているクラス/モジュール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
/... -
Object
# _ dump(limit) -> String (13.0) -
Marshal.#dump において出力するオブジェクトがメソッド _dump を定義している場合には、そのメソッドの結果が書き出されます。
...return オブジェクトを文字列化したものを返すように定義すべきです。
//emlist[][ruby]{
class Foo
def initialize(arg)
@foo = arg
end
def _dump(limit)
Marshal.dump(@foo, limit)
end
def self._load(obj)
p obj
Foo.new(Marshal.load(obj))
end
end
foo =... -
Object
# marshal _ dump -> object (13.0) -
Marshal.#dump を制御するメソッドです。
...す。
@return 任意のオブジェクトで marshal_load の引数に利用できます。
//emlist[][ruby]{
class Foo
def initialize(arg)
@foo = arg
end
def marshal_dump
@foo
end
def marshal_load(obj)
p obj
@foo = obj
end
end
foo = Foo.new(['foo', 'bar'])
p foo... -
Thread
# add _ trace _ func(pr) -> Proc (13.0) -
スレッドにトレース用ハンドラを追加します。
...スハンドラ(Proc オブジェクト)
//emlist[例][ruby]{
th = Thread.new do
class Trace
end
43.to_s
end
th.add_trace_func lambda {|*arg| p arg }
th.join
# => ["line", "example.rb", 4, nil, #<Binding:0x00007f98e107d0d8>, nil]
# => ["c-call", "example.rb", 4, :inherited, #<Binding:0x00007... -
Thread
# set _ trace _ func(pr) -> Proc | nil (13.0) -
スレッドにトレース用ハンドラを設定します。
.../emlist[例][ruby]{
th = Thread.new do
class Trace
end
2.to_s
Thread.current.set_trace_func nil
3.to_s
end
th.set_trace_func lambda {|*arg| p arg }
th.join
# => ["line", "example.rb", 2, nil, #<Binding:0x00007fc8de87cb08>, nil]
# => ["c-call", "example.rb", 2, :inherited, #<Binding:0x0000... -
WIN32OLE
_ METHOD # invkind -> Integer (7.0) -
メソッドの種類を示すINVOKEKIND列挙値を取得します。
...REF(8)
プロパティに参照を設定する形式で記述するメソッドです。
なおINVOKE_PROPERTYPUTREFとINVOKE_PROPERTYPUTは、プロパティ設定形式が2
種類ある言語用の区分です。Rubyでの記述時はどちらも「prop=(arg)」の形式
で記述します。...