るりまサーチ

最速Rubyリファレンスマニュアル検索!
1007件ヒット [1-100件を表示] (0.049秒)
トップページ > クエリ:require[x] > クエリ:default[x]

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

モジュール

検索結果

<< 1 2 3 ... > >>

Gem::Requirement.default -> Gem::Requirement (21207.0)

ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。

...ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。

//emlist[][ruby]{
pp Gem::Requirement.default
# => Gem::Requirement.new([">= 0"])
//}...

Gem::Specification.required_attribute(name, default = nil) -> () (6207.0)

必須の属性を作成します。

...必須の属性を作成します。

@param name 属性名を指定します。

@param default デフォルト値を指定します。

@see Gem::Specification.attribute...

OptionParser#default_argv=(argv) (6149.0)

自身がデフォルトでパースする引数を文字列の配列で指定します。

...][ruby]{
require
"optparse"

config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }

# パラメーター指定なしで実行
opts.default_argv # => []
opts.parse!
p config # => {}

opts.default_argv = ["--require", "lib1"] # => ["--require", "lib...
..."]
opts.default_argv # => ["--require", "param1"]
opts.parse!
p config # => {:lib=>"lib1"}
//}...

URI::Generic.default_port -> Integer | nil (6149.0)

スキームに対応するデフォルトのポート番号を整数で返します。

...ます。

require
'uri'
URI::Generic.default_port # => nil
URI::FTP.default_port # => 21
URI::HTTP.default_port # => 80
URI::HTTPS.default_port # => 443
URI::LDAP.default_port # => 389
URI::LDAPS.default_port # => 636
URI::MailTo.default_port...

Kernel$$DEFAULT_OUTPUT -> IO (6131.0)

$> の別名

...$> の別名

require
"English"

dout = $DEFAULT_OUTPUT.dup
$DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$DEFAULT_OUTPUT.close
$DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo...

絞り込み条件を変える

Shell.default_system_path -> Array (6126.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...す。

動作例
require
'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
#...

Shell.default_system_path=(path) (6126.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...す。

動作例
require
'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
#...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (6125.0)

型が持つソースインターフェイスを取得します。

...型が持つソースインターフェイスを取得します。

default
_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるイン...
...
たない場合は空配列を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]

WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで...
...セージについては既
知としています。

# coding : cp932
require
'win32ole'

type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = type.default_event_sources[0]
class WebEvent
def initialize
@completed = fals...

Kernel$$DEFAULT_INPUT -> IO (6113.0)

$< の別名

...$< の別名

require
"English"
while line = $DEFAULT_INPUT.gets
p line
end
# end of sample.rb

ruby sample.rb < /etc/passwd
# => "hoge:x:500:501::/home/hoge:/bin/bash\n"
......

OptionParser#default_argv -> [String] (6113.0)

自身がデフォルトでパースする引数を文字列の配列で返します。

...ます。

@param argv デフォルトでパースする文字列の配列を返します。

//emlist[例][ruby]{
require
"optparse"

opts = OptionParser.new

# --hoo param1 --bar param2 をパラメーターに指定して実行
opts.default_argv # => ["--foo", "param1", "--bar", "param2"]
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>