36件ヒット
[1-36件を表示]
(0.024秒)
別のキーワード
検索結果
先頭3件
-
Kernel
# file(*args) { . . . } -> Rake :: FileTask (18219.0) -
ファイルタスクを定義します。
...ル名と依存ファイル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
end
end
@see R... -
Object
# respond _ to?(name , include _ all = false) -> bool (72.0) -
オブジェクトがメソッド name を持つとき真を返します。
...いうのは、
オブジェクトが メソッド name に応答できることをいいます。
Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。
※ NotImplementedError が発生する場合に false......e Template
def main
start
template_method
finish
end
def start
puts "start"
end
def template_method
raise NotImplementedError.new
end
def finish
puts "finish"
end
end
class ImplTemplateMethod
include Template
def template_method
"implement template......tImplTemplateMethod
include Template
# not implement template_method
end
puts ImplTemplateMethod.new.respond_to?(:template_method) # => true
# NotImplementedError が発生しているが、Rubyによる実装部のため true を返す
puts NotImplTemplateMethod.new.respond_to?(:template_meth... -
rdoc (24.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...例えば '--extension cgi=rb' とすれば、RDoc は ".cgi" で
終わるファイルを Ruby のソースとして取り扱います。
: --fileboxes
--diagram を指定した場合生成された図において、クラスがどのソースファ
イルで定義されているかを四......レクトリにすでにファイルが存在すれば、
そのファイルを上書きせずに、マージするようにします。
: --one-file
すべての出力を一つのファイルに書きだします。
: --output dir, --op dir
出力先のディレクトリを dir に設定......ではなく)外部スタイルシートの URL を指定する。
: --tab-width n
タブの幅を指定する(デフォルトは 8)。
: --template name
出力生成時に使うテンプレートを指定する(デフォルトは 'html')。実際には
これで $: の中のディレク...