9件ヒット
[1-9件を表示]
(0.125秒)
ライブラリ
- ビルトイン (2)
-
net
/ http (1) - rake (1)
-
rake
/ loaders / makefile (1) -
rdoc
/ parser / simple (1) -
rexml
/ document (1) - rss (2)
クラス
- Array (1)
-
RDoc
:: Parser :: Simple (1) -
REXML
:: Element (1) -
RSS
:: Rss :: Channel :: Item (2) -
Rake
:: Application (1) -
Rake
:: MakefileLoader (1) - String (1)
モジュール
-
Net
:: HTTPHeader (1)
キーワード
-
add
_ loader (1) - comments= (1)
-
content
_ type (1) - load (1)
- pack (1)
-
remove
_ private _ comments (1) - unpack (1)
検索結果
先頭5件
-
REXML
:: Element # comments -> [REXML :: Comments] (63910.0) -
すべての comment 子ノードの配列を返します。
すべての comment 子ノードの配列を返します。
返される配列は freeze されます。 -
RSS
:: Rss :: Channel :: Item # comments (63310.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item # comments= (27310.0) -
@todo
@todo -
RDoc
:: Parser :: Simple # remove _ private _ comments(comment) -> String (27307.0) -
行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返 します。
行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返
します。
@param comment 対象の文字列を指定します。
@return コメントが削除された文字列を返します。 -
Rake
:: Application # add _ loader(ext , loader) (18622.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)... -
Rake
:: MakefileLoader # load(filename) (18322.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'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4 b5 b6\
# Mid: Comment
b7
a : a5... -
Array
# pack(template) -> String (880.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデータ全て」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
@param template 自身のバイナリとしてパックするためのテンプレートを文字列で指定します。
以下にあげるものは、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができま... -
String
# unpack(template) -> Array (880.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。
@param template pack テンプレート文字列
@return オブジェクトの配列
以下にあげるものは、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さの意味はテンプレート文字により異なりますが大抵、
"iiii"
のよう... -
Net
:: HTTPHeader # content _ type -> String|nil (322.0) -
"text/html" のような Content-Type を表す 文字列を返します。
"text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/for...