1377件ヒット
[1-100件を表示]
(0.121秒)
ライブラリ
- ビルトイン (312)
-
cgi
/ core (12) -
irb
/ context (24) -
minitest
/ unit (1) -
net
/ ftp (96) -
net
/ http (36) -
net
/ smtp (80) - openssl (72)
- optparse (120)
- pathname (12)
- pstore (12)
- rake (312)
-
rake
/ loaders / makefile (12) -
rexml
/ document (12) -
ripper
/ filter (36) -
rubygems
/ dependency _ installer (24) -
rubygems
/ source _ index (12) -
rubygems
/ specification (36) - stringio (12)
- uri (24)
-
webrick
/ httpservlet / filehandler (48) - win32ole (36)
- zlib (12)
クラス
- CGI (12)
-
Gem
:: DependencyInstaller (24) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (36) - Hash (144)
- IO (12)
-
IRB
:: Context (24) - Integer (24)
- Module (48)
-
Net
:: FTP (96) -
Net
:: SMTP (80) -
OpenSSL
:: Config (12) -
OpenSSL
:: Engine (12) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Store (12) -
OpenSSL
:: X509 :: StoreContext (12) - OptionParser (96)
- PStore (12)
- Pathname (12)
-
RDoc
:: Options (12) -
REXML
:: Formatters :: Default (12) -
Rake
:: Application (108) -
Rake
:: FileList (60) -
Rake
:: FileTask (12) -
Rake
:: InvocationChain (12) -
Rake
:: MakefileLoader (12) -
Rake
:: TaskArguments (12) -
Ripper
:: Filter (36) - String (36)
- StringIO (12)
- Thread (12)
- ThreadGroup (24)
-
URI
:: Generic (24) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (48) -
WIN32OLE
_ PARAM (12) -
WIN32OLE
_ TYPE (24) -
Zlib
:: Deflate (12)
モジュール
- Enumerable (12)
-
Gem
:: InstallUpdateOptions (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (36) -
OptionParser
:: Arguable (24) -
Rake
:: Cloneable (12) -
Rake
:: TaskManager (96)
キーワード
- [] (24)
- add (12)
-
add
_ loader (12) - append (12)
-
assign
_ defaults (12) - chr (24)
- chunk (12)
- clear (12)
- config= (12)
-
create
_ rule (12) -
current
_ scope (12) - default= (12)
-
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) -
default
_ executable (12) -
default
_ executable= (12) -
default
_ ole _ types (12) -
default
_ port (12) -
default
_ proc (12) -
default
_ proc= (12) -
do
_ GET (12) - dup (12)
- each (12)
- egrep (12)
-
enable
_ ssl (12) -
enable
_ starttls (12) -
enable
_ starttls _ auto (12) -
enable
_ tls (12) - encode (36)
- encoding (12)
- error= (12)
-
external
_ encoding (12) - fetch (84)
-
find
_ name (12) -
find
_ spec _ by _ name _ and _ version (12) - get (24)
- getbinaryfile (24)
- getopts (24)
- group (12)
- gsub! (12)
- import (12)
-
in
_ namespace (12) - init (12)
- install (12)
-
install
_ update _ defaults _ str (12) -
last
_ comment (12) -
last
_ description (12) -
last
_ description= (12) - list (12)
- load (12)
- lookup (12)
-
make
_ partial _ content (12) -
mu
_ pp (1) - name (12)
-
new
_ scope (12) -
not
_ modified? (12) -
on
_ XXX (12) -
on
_ default (12) - order! (24)
-
original
_ dir (12) - params (12)
- parse (12)
- parse! (12)
- parser (12)
- pathmap (12)
- permute! (12)
-
prepare
_ range (12) - print (12)
-
prompt
_ mode (12) -
prompt
_ mode= (12) - public (48)
- put (24)
- putbinaryfile (24)
- rakefile (12)
-
set
_ default (12) -
set
_ default _ paths (12) -
set
_ encoding (12) -
set
_ params (12) - shift (12)
- start (32)
- sub! (12)
-
top
_ level (12) -
top
_ level _ tasks (12) -
tty
_ output= (12) -
values
_ at (12) - write (12)
検索結果
先頭5件
-
WIN32OLE
_ PARAM # default -> object | nil (21114.0) -
パラメータを指定しなかった場合の既定値を取得します。
...返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
method.params.each do |param|
if param.default
puts "#{param.name} (= #{param.default})"
else
puts "#{param}"
end
end... -
Hash
# default -> object | nil (18247.0) -
ハッシュのデフォルト値を返します。
...には 2 番目の形式か Hash#default_proc を使ってください。
2 番目の形式はハッシュがデフォルト値としてブロックを持つ場合に、
self と引数 key をブロックに渡して評価し、その結果を返します。
@param key デフォルトのブロッ.......new("default")
p h.default #=> "default"
p h.default(:some) #=> "default"
p h #=>{}
h = Hash.new{|hash, key| hash[key] ="default" }
p h.default #=> nil
p h.default(:some) #=> "default"
p h #=> {:some=>"default"}
h = Hash.new
p h.default #=> nil
p h.default(:som......e) #=> nil
p h #=> {}
//}
@see Hash#default=, Hash#default_proc... -
Hash
# default(key) -> object | nil (18247.0) -
ハッシュのデフォルト値を返します。
...には 2 番目の形式か Hash#default_proc を使ってください。
2 番目の形式はハッシュがデフォルト値としてブロックを持つ場合に、
self と引数 key をブロックに渡して評価し、その結果を返します。
@param key デフォルトのブロッ.......new("default")
p h.default #=> "default"
p h.default(:some) #=> "default"
p h #=>{}
h = Hash.new{|hash, key| hash[key] ="default" }
p h.default #=> nil
p h.default(:some) #=> "default"
p h #=> {:some=>"default"}
h = Hash.new
p h.default #=> nil
p h.default(:som......e) #=> nil
p h #=> {}
//}
@see Hash#default=, Hash#default_proc... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (15414.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
...Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_......path # => #<Pathname:/path/to/testfile>
path.expand_path("../") # => #<Pathname:/path/testfile>
//}
@see File.expand_path... -
WIN32OLE
_ TYPE # default _ ole _ types -> [WIN32OLE _ TYPE] (15314.0) -
型が持つデフォルトのインターフェイスを取得します。
...型が持つデフォルトのインターフェイスを取得します。
default_ole_typesメソッドは、selfがCoClass(コンポーネントクラス)の場
合、そのクラスが実装しているデフォルトのインターフェイスと、サポートし
ていればデフォル......トのソースインターフェイスを返します。
@return デフォルトインターフェイスをWIN32OLE_TYPEの配列として返し
ます。デフォルトインターフェイスは、最大でも、クラス操作用のイ
ンターフェイス(OLEオートメー......ターフェイスの2要素です。デフォルトインターフェイスを持たない
場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_ole_types.map {|intf| intf.name} #=> ["_Worksheet", "DocEvents"]... -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (15201.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
...Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers... -
Hash
# default _ proc=(pr) (12392.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを 変更します。
...ハッシュのデフォルト値を返す Proc オブジェクトを
変更します。
以前のデフォルトは値(Hash#default)の場合も
Proc の場合(Hash#default_proc)でも上書きされます。
引数には to_proc で Proc オブジェクトに変換できる
オブジェクト......も受け付けます。
nil を指定した場合は現在の Hash#default_proc をクリアします。
@param pr デフォルト値を返す手続きオブジェクト
//emlist[例][ruby]{
h = {}
h.default_proc = proc do |hash, key|
hash[key] = case
when (key % 15).zero?......d
p h[1] # => 1
p h[2] # => 2
p h[3] # => "Fizz"
p h[5] # => "Buzz"
p h[15] # => "FizzBuzz"
h.default_proc = nil
p h[16] # => nil
# default_proc が nil になったので `16=>16 が追加されていない`
p h # => {1=>1, 2=>2, 3=>"Fizz", 5=>"Buzz", 15=>"FizzBuzz"}
//}
@see Hash#default... -
Hash
# default _ proc -> Proc | nil (12374.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを返します。 ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
... Proc オブジェクトを返します。
ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
//emlist[例][ruby]{
h = Hash.new {|hash, key| "The #{key} not exist in #{hash.inspect}"}
p h.default #=> nil
p block = h.default_proc #=> #<Pro......c:0x0x401a9ff4>
p block.call({},:foo) #=> "The foo not exist in {}"
h = Hash.new("default")
p h.default #=> "default"
p h.default_proc #=> nil
//}
@see Hash#default... -
URI
:: Generic # default _ port -> Integer | nil (12224.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port...