345件ヒット
[1-100件を表示]
(0.017秒)
ライブラリ
- ビルトイン (12)
- csv (24)
-
minitest
/ unit (1) - rake (180)
-
ripper
/ filter (48) -
rubygems
/ requirement (24) -
webrick
/ httpproxy (12)
クラス
- CSV (24)
-
Gem
:: Requirement (24) -
Rake
:: Application (120) -
Rake
:: InvocationChain (24) -
Ripper
:: Filter (36) -
WEBrick
:: HTTPProxyServer (12)
モジュール
- Enumerable (12)
-
MiniTest
:: Assertions (1) - Rake (24)
-
Rake
:: TaskManager (12)
キーワード
-
DEFAULT
_ RAKEFILES (12) - Filter (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
add
_ loader (12) - append (24)
- application (12)
- application= (12)
- chunk (12)
- create (12)
- init (12)
- irb (12)
-
mu
_ pp (1) - name (12)
- new (12)
-
on
_ XXX (12) -
on
_ default (12) -
original
_ dir (12) - parse (12)
- rakefile (12)
- read (12)
- readlines (12)
- tasks (12)
-
top
_ level (12) -
top
_ level _ tasks (12) - tsort (12)
-
tty
_ output= (12) - xmlrpc (3)
検索結果
先頭5件
-
Gem
:: Requirement . default -> Gem :: Requirement (18113.0) -
ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。
...ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。
//emlist[][ruby]{
pp Gem::Requirement.default
# => Gem::Requirement.new([">= 0"])
//}... -
Ripper
:: Filter # on _ default(event , token , data) -> object (9107.0) -
イベントハンドラが未定義のイベントが実行された場合に実行されるイベント ハンドラです。
...Ripper::Filter#parse の引数になります。
このメソッドの戻り値は次のイベントハンドラの data 引数に渡されます。
on_default をオーバライドしなかった場合は data 引数をそのまま返します。
@see Ripper::Filter#parse, Ripper::Filter... -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (9101.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。 -
Rake
. application -> Rake :: Application (6242.0) -
現在の Rake アプリケーションを返します。
...る
require 'pp'
task default: :test_rake_app
task :test_rake_app do
pp Rake.application
end
# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x31b0c18......>,
# ".rf"=>#<Rake::DefaultLoader:0x31b0b88>,
# ".rake"=>#<Rake::DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile="rakefile",
#......ile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default => [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @terminal_columns=0,
# @top_level_tasks=["default"],
# @tty_output=false>
//}... -
Rake
. application=(app) (6224.0) -
現在の Rake アプリケーションをセットします。
...@param app Rake::Application のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_output = true
Rake.application = app
pp Rake.application
end......# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
# ".rf"=>#<Rake::DefaultLoader:0x00005624e6c30b48>,
#......".rake"=>#<Rake::DefaultLoader:0x00005624e6c30a80>},
# @name="rake",
# @options=
# #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"], s... -
MiniTest
:: Assertions # mu _ pp(object) -> String (6107.0) -
Object#inspect した結果のエンコーディングを変更して返します。
...Object#inspect した結果のエンコーディングを変更して返します。
エンコーディングは Encoding.default_external に変更されます。
@param object 任意のオブジェクトを指定します。... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6106.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...た場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (6106.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...e::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (3207.0) -
プロクシオブジェクトを生成して返します。
...ick'
require 'webrick/httpproxy'
auth_proc = proc{|req, res|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthP......トは nil です。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
handler = proc{|req, res|
res.body.gsub!(/です。/, 'でんがな。')
res.body.gsub!(/ます。/, 'まんがな。')
}
s = WEBrick::HTTPProxyServer.new(ProxyContentHandler: handler, Port: 8080)
//}
: :ProxyVia......の Proxy の URI
を URI オブジェクトで指定します。
//emlist{
require 'uri'
require 'webrick/httpproxy'
u = URI.parse('http://localhost:18080/')
s = WEBrick::HTTPProxyServer.new(ProxyURI: u, Port: 8080)
//}
@param default デフォルトは WEBrick::Config::HTTP です。... -
Rake
:: Application # init(app _ name = & # 39;rake& # 39;) (3112.0) -
コマンドラインオプションとアプリケーション名を初期化します。
...ンドラインオプションとアプリケーション名を初期化します。
//emlist[例][ruby]{
# Rakefile での記載例とする
task default: :test
task :test
Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}...