118件ヒット
[1-100件を表示]
(0.223秒)
ライブラリ
- ビルトイン (30)
-
net
/ http (11) - rake (11)
-
rake
/ loaders / makefile (11) -
rdoc
/ parser / simple (11) - rss (44)
クラス
- Array (19)
-
RDoc
:: Parser :: Simple (11) -
RSS
:: Maker :: ItemsBase :: ItemBase (22) -
RSS
:: Rss :: Channel :: Item (22) -
Rake
:: Application (11) -
Rake
:: MakefileLoader (11) - String (11)
モジュール
-
Net
:: HTTPHeader (11)
キーワード
-
add
_ loader (11) - comments= (22)
-
content
_ type (11) - load (11)
- pack (19)
-
remove
_ private _ comments (11) - unpack (11)
検索結果
先頭5件
-
RSS
:: Maker :: ItemsBase :: ItemBase # comments (27203.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item # comments (27203.0) -
@todo
@todo -
RDoc
:: Parser :: Simple # remove _ private _ comments(comment) -> String (18402.0) -
行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返 します。
...行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返
します。
@param comment 対象の文字列を指定します。
@return コメントが削除された文字列を返します。... -
RSS
:: Maker :: ItemsBase :: ItemBase # comments=() (15203.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item # comments= (15203.0) -
@todo
@todo -
String
# unpack(template) -> Array (12987.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...
Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。
@param template pack テンプレート文字列
@return オブジェクトの配列
以下にあげるもの......は、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さの意味はテ......字のシステム依存性
各テンプレート文字の説明の中で、
short や long はシステムによらずそれぞれ 2, 4バイトサ
イズの数値(32ビットマシンで一般的なshort, longのサイズ)を意味していま
す。s, S, l, L に対しては直後に _ または......は、Array#pack、String#unpack、String#unpack1
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さ... -
Rake
:: Application # add _ loader(ext , loader) (12349.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.m......f", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
Net
:: HTTPHeader # content _ type -> String|nil (12207.0) -
"text/html" のような Content-Type を表す 文字列を返します。
...ような 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.reques......t_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Rake
:: MakefileLoader # load(filename) (9315.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......ment
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, a5, a6......, a7]>
end
//}... -
Array
# pack(template , buffer: String . new) -> String (7105.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結......してください。
buffer のサイズ(capacity)が足りなければ、packはメモリを確保します。
//emlist[例][ruby]{
['!'].pack('@1a', buffer: 'abc') # => "a!"
['!'].pack('@5a', buffer: 'abc') # => "abc\u0000\u0000!"
//}
@param template 自身のバイナリとしてパックす...