77件ヒット
[1-77件を表示]
(0.159秒)
別のキーワード
ライブラリ
- bigdecimal (11)
-
irb
/ ext / use-loader (33) - optparse (11)
-
rake
/ loaders / makefile (11) - rubygems (11)
クラス
- BigDecimal (11)
-
IRB
:: Context (33) - OptionParser (11)
-
Rake
:: MakefileLoader (11)
モジュール
- Kernel (11)
キーワード
-
_ dump (11) - gem (11)
-
use
_ loader (11) -
use
_ loader= (11) -
use
_ loader? (11)
検索結果
先頭5件
-
Rake
:: MakefileLoader # load(filename) (21168.0) -
与えられた 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'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4 b5 b6\
#......Mid: 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 (18256.0) -
指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
...行ないます。
パースが成功した場合に true を返します。
ファイルが存在しなかった場合に false を返します。
@param filename 各行をパースしたいファイルの名前を文字列で指定します。
指定されないか nil である......。
//emlist[例][ruby]{
require "optparse"
IO.write("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}
//}... -
IRB
:: Context # use _ loader -> bool (9271.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
IRB
:: Context # use _ loader? -> bool (9271.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) (9171.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?... -
BigDecimal
# _ dump -> String (3047.0) -
BigDecimal._load で復元可能な文字列を返します。 Marshal.#dump から呼び出されます。
...
BigDecimal._load で復元可能な文字列を返します。
Marshal.#dump から呼び出されます。
//emlist[][ruby]{
require 'bigdecimal'
inf = BigDecimal('Infinity') # => Infinity
s = Marshal.dump(inf) # => "\x04\bu:\x0FBigDecimal\x0F9:Infinity"
Marshal.load(s) # => I......nfinity
//}
@see BigDecimal._load, Marshal.#dump, Marshal.#load... -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (253.0) -
$LOAD_PATH に Ruby Gem を追加します。
...$LOAD_PATH に Ruby Gem を追加します。
指定された Gem をロードする前にその Gem が必要とする Gem をロードします。
バージョン情報を省略した場合は、最も高いバージョンの Gem をロードします。
指定された Gem やその Gem が必......った場合は
Gem::LoadError が発生します。
バージョンの指定方法に関しては Gem::Version を参照してください。
rubygems ライブラリがライブラリバージョンの衝突を検出しない限り、
gem メソッドは全ての require メソッドよりも前......例:
GEM_SKIP=libA:libB ruby-I../libA -I../libB ./mycode.rb
@param gem Gem の名前の文字列か、Gem の依存関係を Gem::Dependency のインスタンスで指定します。
@param version_requirements 必要とする gem のバージョンを指定します。
@return Gem がロー...