ライブラリ
- ビルトイン (640)
- benchmark (12)
-
cgi
/ core (60) - delegate (12)
- fiber (8)
- fiddle (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) -
net
/ ftp (72) -
net
/ smtp (24) - openssl (24)
- optparse (120)
- pathname (168)
- rake (156)
- ripper (24)
-
rubygems
/ command (24) -
rubygems
/ user _ interaction (108) - set (18)
- un (12)
- win32ole (120)
- zlib (12)
クラス
- BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- Class (24)
- Complex (12)
- Data (3)
- Date (12)
- DateTime (12)
- Delegator (12)
- Enumerator (108)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (72) - Exception (12)
- Fiber (12)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (12) -
Gem
:: Command (24) -
Gem
:: StreamUI (12) - Method (66)
-
MiniTest
:: Mock (1) -
MiniTest
:: Unit (2) - Module (36)
-
Net
:: FTP (72) -
Net
:: SMTP (24) - NoMethodError (12)
- Object (121)
- OpenStruct (12)
- OptionParser (96)
-
OptionParser
:: ParseError (24) - Pathname (168)
-
Rake
:: Task (36) - Range (12)
- Rational (12)
- Regexp (12)
- Ripper (24)
-
RubyVM
:: InstructionSequence (12) - String (12)
- Struct (12)
- Symbol (12)
- Time (12)
- UnboundMethod (12)
- WIN32OLE (84)
-
WIN32OLE
_ EVENT (36) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (48) -
CGI
:: QueryExtension :: Value (12) - Enumerable (115)
- FileUtils (24)
-
Gem
:: UserInteraction (96) - Kernel (72)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (24) -
Rake
:: TaskManager (36)
キーワード
- % (12)
- === (8)
- [] (24)
-
_ _ send _ _ (24) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ extra _ args (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) - allocate (12)
- ask (12)
-
ask
_ yes _ no (12) -
assert
_ raises (1) -
bind
_ call (12) - binread (12)
- binwrite (12)
- call (48)
-
choose
_ from _ list (12) -
class
_ exec (12) -
create
_ rule (12) - curry (22)
-
define
_ task (12) - dir (24)
- each (62)
-
each
_ line (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - entries (12)
-
enum
_ for (48) - execute (12)
- expect (1)
- file (12)
-
file
_ create (12) - fnmatch (12)
- fnmatch? (12)
- force (12)
- format (12)
- handler= (12)
-
has
_ key? (12) - include? (12)
- initialize (12)
-
instance
_ exec (12) - invoke (24)
- join (12)
- key? (12)
- keys (12)
- list (24)
- ls (24)
-
method
_ missing (36) - mkdir (12)
- mkmf (12)
-
module
_ exec (12) - multitask (12)
-
must
_ raise (1) - new (12)
-
next
_ values (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) - open (24)
- order (48)
- parse (24)
- permute (24)
- print (12)
- printf (24)
-
process
_ args (1) -
progress
_ reporter (12) -
public
_ send (24) - read (12)
- readlines (12)
- ready (12)
- recover (12)
-
resolve
_ args (12) -
respond
_ to _ missing? (12) - ruby (12)
-
ruby2
_ keywords (12) - rule (12)
- run (1)
-
safe
_ ln (12) - say (12)
- send (24)
-
set
_ arg _ names (12) - setproperty (24)
- sysopen (12)
- task (12)
-
terminate
_ interaction (12) -
to
_ a (24) -
to
_ enum (48) -
to
_ h (19) -
to
_ json (144) -
to
_ set (24) - transfer (12)
- warn (12)
- warning (12)
- with (3)
-
with
_ index (36) -
with
_ object (24)
検索結果
先頭5件
-
Class
# new(*args , &block) -> object (208.0) -
自身のインスタンスを生成して返します。 このメソッドの引数はブロック引数も含め Object#initialize に渡されます。
...ック引数も含め Object#initialize に渡されます。
new は Class#allocate でインスタンスを生成し、
Object#initialize で初期化を行います。
@param args Object#initialize に渡される引数を指定します。
@param block Object#initialize に渡されるブロ......ックを指定します。
//emlist[例][ruby]{
# Class クラスのインスタンス、C クラスを生成
C = Class.new # => C
# Class クラスのインスタンス、C クラスのインスタンスを生成
C.new # => #<C:0x00005623f8b4e458>
//}... -
Fiddle
:: Closure :: BlockCaller # call(*args) -> object (208.0) -
wrap しているブロックを呼び出します。
...wrap しているブロックを呼び出します。
そのブロックの返り値がこのメソッドの返り値となります。
@param args 引数... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (208.0) -
ファイルタスクを定義します。
...します。
@param args ファイル名と依存ファイル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end......end
end
end
@see Rake::Task.define_task... -
Ripper
# warn(fmt , *args) -> nil (208.0) -
解析した Ruby プログラムの中に警告($-w が true の時だけ出力される 警告)を出力するようなものがあった場合に実行されます。
...た Ruby プログラムの中に警告($-w が true の時だけ出力される
警告)を出力するようなものがあった場合に実行されます。
@param fmt エラーメッセージのフォーマット文字列です。
@param args エラーメッセージのフォーマットさ......れる引数です。
サブクラスでオーバライドして使用します。
引数のエラーメッセージは printf フォーマットに従って渡されます。... -
Ripper
# warning(fmt , *args) -> nil (208.0) -
解析した Ruby プログラムの中に重要な警告($-w が false の時だけ出 力される警告)を出力するようなものがあった場合に実行されます。
...れます。
@param fmt エラーメッセージのフォーマット文字列です。
@param args エラーメッセージのフォーマットされる引数です。
サブクラスでオーバライドして使用します。
引数のエラーメッセージは printf フォーマットに... -
WIN32OLE
# _ invoke(dispid , args , types) -> object | nil (208.0) -
DISPIDとパラメータの型を指定してオブジェクトのメソッドを呼び出します。
...プを減らして処理速度を向上させることを目的としたものです。後者の目的に
ついては、DLLの形式で型情報(TypeLib)を提供しているサーバに対してはあ
まり意味を持ちません。そのため、型の高精度な制御が不要な場合......し
ます。
@param args メソッドの引数を配列で指定します。引数の順序は最左端の引数
のインデックスを0とします。引数が不要な場合は空配列を指定し
ます。
@param types メソッドの引数の型を配......には、
WIN32OLE::VARIANTの定数を利用します。引数が不要な場
合は空配列を指定します。
@return メソッドの返り値。ただし返り値を持たないメソッドの場合はnil。
@raise WIN32OLERuntimeError オートメーションサ... -
WIN32OLE
# invoke(name , *args) -> object | nil (208.0) -
メソッド名を指定してオブジェクトのメソッドを呼び出します。
...@param args メソッドの引数を指定します。また、最後の引数にHashを
与えることで、名前付き引数を指定できます。この場合、キーに
文字列またはシンボルでパラメータ名、値に引数を指定します。
@return......untimeError オートメーションサーバの呼び出しに失敗しました。
理由はメッセージのHRESULTを調べてください。
excel = WIN32OLE.new('Excel.Application')
workbook = excel.workbooks.invoke(:Open, :FileName => 'c:\\users\\public\\test.......:ReadOnly => true,
:Password => 'secret')
excel.invoke(:Quit)
このリストは、以下の記述と同等です。
excel = WIN32OLE.new('Excel.Application')
workbook = excel.workbooks.Open(:FileName => 'c:\\users\\public\\test.xml',... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (129.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
... the given method names, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, t......ent is marked with a special
flag such that if it is the final element of a normal argument splat to
another method call, and that method call does not include explicit
keywords or a keyword splat, the final element is interpreted as
keywords. In other words, keywords will be passed through the meth......od to
other methods.
This should only be used for methods that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby ve... -
Kernel
# mkmf -> () (55.0) -
mkmf を使って Makefile を作成します。
...成します。
ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION]
-d ARGS run dir_config
-h ARGS run have_header
-l ARGS run have_library
-f ARGS run have_func
-v ARGS run have_var
-t ARGS run have_type
-m ARGS run have_macro
-c ARGS run have_const
--vendor install to vendor_ruby...