ライブラリ
- ビルトイン (148)
- csv (36)
- erb (24)
-
json
/ add / exception (12) -
minitest
/ unit (1) -
net
/ http (24) - optparse (84)
- rake (600)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - strscan (84)
クラス
- CSV (36)
- Dir (12)
- ERB (24)
- Exception (44)
- IO (56)
- Method (12)
- Module (12)
-
Net
:: HTTPGenericRequest (24) - OptionParser (84)
-
Rake
:: Application (84) -
Rake
:: FileList (204) -
Rake
:: FileTask (24) -
Rake
:: InvocationChain (36) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) -
Rake
:: TaskArguments (60) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - StringScanner (84)
- TracePoint (24)
モジュール
- Kernel (12)
-
MiniTest
:: Assertions (1) -
Rake
:: Cloneable (24) -
Rake
:: TaskManager (156)
キーワード
- << (12)
- == (12)
- [] (42)
-
add
_ row (12) - append (12)
-
assert
_ send (1) -
backtrace
_ locations (12) -
body
_ stream (12) -
body
_ stream= (12) - clear (12)
-
clear
_ exclude (12) - clone (24)
-
const
_ source _ location (12) -
create
_ rule (12) -
current
_ scope (12) -
def
_ class (12) -
def
_ module (12) -
define
_ task (12) - desc (12)
- dup (24)
- egrep (12)
-
excluded
_ from _ list? (12) - existing (12)
- existing! (12)
- ext (12)
- fdatasync (12)
- flush (12)
- gsub! (12)
- import (12)
-
in
_ namespace (12) - inspect (18)
- intern (12)
-
is
_ a? (12) -
kind
_ of? (12) -
last
_ comment (12) -
last
_ description (12) -
last
_ description= (12) - load (12)
- lookup (12)
- match? (12)
-
matched
_ size (12) - member? (12)
- name (12)
- names (12)
- needed? (12)
-
new
_ scope (12) -
on
_ head (12) -
on
_ tail (12) -
original
_ dir (12) -
package
_ files (12) -
package
_ files= (12) - parse (24)
- parse! (12)
- path (12)
- pathmap (12)
- peek (12)
- peep (12)
- pointer= (12)
- pos= (12)
-
program
_ name= (12) - puts (12)
- rakefile (12)
- read (12)
- resolve (12)
-
set
_ backtrace (12) - sub! (12)
-
synthesize
_ file _ task (12) - tasks (12)
-
to
_ a (24) -
to
_ ary (12) -
to
_ hash (12) -
to
_ json (12) -
to
_ s (30) -
top
_ level (12) -
top
_ level _ tasks (12) -
tty
_ output= (12) - unscan (12)
-
with
_ defaults (12) - write (8)
検索結果
先頭5件
- Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - MiniTest
:: Assertions # assert _ send(array , message = nil) -> true - Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain
-
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15136.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...Kernel.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@para......ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15136.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...Kernel.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@para......ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15136.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...Kernel.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@para......ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
MiniTest
:: Assertions # assert _ send(array , message = nil) -> true (9101.0) -
引数から、式を取り出して評価した結果が真の場合、検査にパスしたことになります。
...します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 取り出した式が偽を返す場合に発生します。
例:
assert_send([%w[foo bar baz], :include?, 'baz'])... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6119.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
:: FileList # import(array) -> self (133.0) -
与えられた配列を自身にインポートします。
...る
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.import(["test4.rb", "test5.rb"]) # => ["test4.rb", "test5.rb", "test1.rb", "test2.rb", "test3.rb"]
file_lis......t # => ["test4.rb", "test5.rb", "test1.rb", "test2.rb", "test3.rb"]
end
//}... -
Rake
:: FileList # gsub!(pattern , replace) -> self (97.0) -
自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。 自身を破壊的に変更します。
...rite("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.gsub!(/\.rb/, ".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
file_list # => ["test1.erb"......, "test2.erb", "test3.erb"]
end
//}... -
Method
# inspect -> String (85.0) -
self を読みやすい文字列として返します。
...//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以......ef foo
end
end
p obj.method(:foo) # => #<Method: "".foo() foo.rb:4>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo) # => #<Method: Foo.foo() foo.rb:11>
# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.......method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}
@see Object#inspect... -
Method
# to _ s -> String (85.0) -
self を読みやすい文字列として返します。
...//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以......ef foo
end
end
p obj.method(:foo) # => #<Method: "".foo() foo.rb:4>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo) # => #<Method: Foo.foo() foo.rb:11>
# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.......method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}
@see Object#inspect... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (85.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
include M
C4 = 4
end
class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end
p B.const_source_location('C4') # => ["test.rb", 12......e_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]
p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない
p A.const_source_location('C2') # => ["test.rb", 16] -- 最後に定義さ......on('B') # => ["test.rb", 10] -- Object はトップレベルの定数を検索する
p Object.const_source_location('A') # => ["test.rb", 1] -- クラスが再定義された場合は最初の定義位置を返す
p B.const_source_location('A') # => ["test.rb", 1] -- Object... -
Rake
:: FileList # existing! -> self (85.0) -
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含むように自身を変更して返します。
...とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.existing! # => ["test1.rb", "test2.rb"]
file_list # => ["test1.rb", "test2.rb"]
end
//}... -
Rake
:: FileList # ext(newext = & # 39;& # 39;) -> Rake :: FileList (79.0) -
各要素に String#ext を適用した新しい Rake::FileList を返します。
...file での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.ext(".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
end
//}
@see String#ext...