るりまサーチ

最速Rubyリファレンスマニュアル検索!
158件ヒット [101-158件を表示] (0.015秒)
トップページ > クエリ:comments[x]

別のキーワード

  1. rss comments
  2. rss comments=
  3. item comments
  4. item comments=
  5. element comments

検索結果

<< < 1 2 >>

String#unpack(template) -> Array (12.0)

Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。

...F-16 とはいえない)

リトルエンディアン:
//emlist[][ruby]{
("Comments").unpack("U*").pack("v*") # => "C\x00o\x00m\x00m\x00e\x00n\x00t\x00s\x00"
//}
ビッグエンディアン:
//emlist[][ruby]{
("Comments").unpack("U*").pack("n*") # => "\x00C\x00o\x00m\x00m\x00e\x00n\x00t\x00s"
//...

pack テンプレート文字列 (12.0)

pack テンプレート文字列

...F-16 とはいえない)

リトルエンディアン:
//emlist[][ruby]{
("Comments").unpack("U*").pack("v*") # => "C\x00o\x00m\x00m\x00e\x00n\x00t\x00s\x00"
//}
ビッグエンディアン:
//emlist[][ruby]{
("Comments").unpack("U*").pack("n*") # => "\x00C\x00o\x00m\x00m\x00e\x00n\x00t\x00s"
//...

Net::HTTPHeader#content_type -> String|nil (6.0)

"text/html" のような 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/form-data'
req.content_type...

Rake::Application#add_loader(ext, loader) (6.0)

与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。

...[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.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("samp...

Rake::MakefileLoader#load(filename) (6.0)

与えられた Makefile をロードします。

...ile での記載例とする
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 a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end

ta...

絞り込み条件を変える

<< < 1 2 >>