526件ヒット
[1-100件を表示]
(0.122秒)
ライブラリ
- ビルトイン (118)
- bigdecimal (12)
- delegate (12)
-
fiddle
/ import (12) -
irb
/ cmd / load (12) -
irb
/ ext / save-history (12) -
irb
/ ext / use-loader (48) - openssl (36)
- optparse (12)
- rake (24)
-
rake
/ loaders / makefile (12) -
rake
/ testtask (24) - rubygems (48)
-
rubygems
/ commands / build _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (12) -
rubygems
/ spec _ fetcher (12) -
rubygems
/ specification (24) -
rubygems
/ version (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpauth / userdb (12)
クラス
- BigDecimal (12)
- Class (12)
- Delegator (12)
-
Gem
:: Commands :: BuildCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: LoadError (36) -
Gem
:: Package :: TarInput (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (12) -
Gem
:: SpecFetcher (12) -
Gem
:: Specification (24) -
Gem
:: Version (12) -
IRB
:: Context (36) -
IRB
:: ExtendCommand :: Load (12) - Module (24)
- Object (60)
-
OpenSSL
:: Engine (24) -
OpenSSL
:: X509 :: ExtensionFactory (12) - OptionParser (12)
-
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: MakefileLoader (12) -
Rake
:: TestTask (24) - Random (12)
-
RubyVM
:: InstructionSequence (10) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12)
モジュール
-
Fiddle
:: Importer (12) -
IRB
:: ExtendCommandBundle (12) -
IRB
:: HistorySavingAbility (12) - Kernel (12)
-
WEBrick
:: HTTPAuth :: UserDB (12)
キーワード
-
_ dump (24) -
_ load (12) -
add
_ loader (12) - autoload (12)
- autoload? (12)
- clone (12)
- config= (12)
- dlload (12)
- download (12)
- dup (12)
- execute (12)
- gem (12)
-
get
_ passwd (36) -
irb
_ load (12) - libs= (12)
-
load
_ file (12) -
load
_ gems _ in (12) -
load
_ gemspec (12) -
load
_ gemspecs (12) -
load
_ history (12) -
load
_ private _ key (12) -
load
_ public _ key (12) -
load
_ specs (12) - loaded= (12)
-
loaded
_ from= (12) - loader= (12)
-
marshal
_ dump (12) -
marshal
_ load (48) - name= (12)
-
to
_ binary (10) -
use
_ loader (12) -
use
_ loader= (12) -
use
_ loader? (12) -
version
_ requirement (12) -
version
_ requirement= (12)
検索結果
先頭5件
-
Rake
:: DefaultLoader # load(filename) (21114.0) -
与えられたファイルをロードします。
...与えられたファイルをロードします。
@param filename ロードするファイル名を指定します。
//emlist[][ruby]{
require 'rake'
loader = Rake::DefaultLoader.new
loader.load("path/to/Rakefile") # => true
//}... -
Rake
:: MakefileLoader # load(filename) (21114.0) -
与えられた Makefile をロードします。
...与えられた Makefile をロードします。
@param filename 読み込む Makefile の名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"
task default: :test_rake_app
open "sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Commen......d: Comment
b7
a : a5 a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end
task :test_rake_app do |task|
loader = Rake::MakefileLoader.new
loader.load("sample.mf")
p Rake::Task.task_defined?("a") # => true
p Rake::Task.tasks[0] # => <Rake::FileTask a => [a1, a2, a3, a4,... -
OptionParser
# load(filename = nil) -> bool (18120.0) -
指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
...行ないます。
パースが成功した場合に true を返します。
ファイルが存在しなかった場合に false を返します。
@param filename 各行をパースしたいファイルの名前を文字列で指定します。
指定されないか nil である......e("options.txt", %w(-a --b).join("\n"))
options = { a: false, b: false }
OptionParser.new do |opt|
opt.on('-a') { |v| options[:a] = v }
opt.on('--b') {|v| options[:b] = v }
opt.load("options.txt") # => true
opt.load("not_exist.txt") # => false
end
p options # => {:a=>true, :b=>true}
//}... -
Rake
:: Application # add _ loader(ext , loader) (6219.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...ファイルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
m......'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
Object
# marshal _ load(obj) -> object (6178.0) -
Marshal.#load を制御するメソッドです。
...hal.#load を制御するメソッドです。
some のダンプ結果(Marshal.dump(some)) をロードする(Marshal.load(Marshal.dump(some)))に
は some がメソッド marshal_load を持っていなければなりません。
このとき、marshal_dump の返り値が marshal_load の......marshal_load 時の self は、生成されたばかり(Class#allocate されたばかり) の状態です。
marshal_dump/marshal_load の仕組みは Ruby 1.8.0 から導入されました。
これから書くプログラムでは _dump/_load ではなく
marshal_dump/marshal_load を使う......べきです。
@param obj marshal_dump の返り値のコピーです。
@return 返り値は無視されます。
@see Object#marshal_dump, Marshal... -
IRB
:: Context # use _ loader -> bool (6139.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
IRB
:: Context # use _ loader=(opt) (6139.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#......use_loader?... -
IRB
:: Context # use _ loader? -> bool (6139.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
Gem
:: RemoteFetcher # download(spec , source _ uri , install _ dir = Gem . dir) -> String (6131.0) -
source_uri から取得した Gem パッケージをキャッシュディレクトリに配置します。
...ファイルを置き換えます。
@param spec Gem::Specification のインスタンスを指定します。
@param source_uri 取得先の URI を指定します。
@param install_dir ダウンロードしたファイルの配置先を指定します。
@return ローカルにコピーした......Gem ファイルのパスを返します。
@raise Gem::RemoteFetcher::FetchError...