るりまサーチ

最速Rubyリファレンスマニュアル検索!
468件ヒット [1-100件を表示] (0.173秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils chmod_r

検索結果

<< 1 2 3 ... > >>

REXML::Instruction#content -> String | nil (21315.0)

XML 処理命令の内容を返します。

...][ruby]{
r
equire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" hre...
...f=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...

RDoc::Markup#content -> String (21303.0)

変換する文字列を返します。

...

r
doc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。

変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。

@see SM::SimpleMark...
...up#convert...

OpenURI::Meta#content_type -> String (9357.0)

対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。

...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
r
equire 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "...
...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
r
equire 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #...

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

"text/html" のような Content-Type を表す 文字列を返します。

... Content-Type を表す
文字列を返します。

Content
-Type: ヘッダフィールドが存在しない場合には nil を返します。

//emlist[例][ruby]{
r
equire 'net/http'

uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
r
eq = Net::HTTP::Post.new(uri.request_uri)
r
e...
...q.content_type # => nil
r
eq.content_type = 'multipart/form-data'
r
eq.content_type # => "multipart/form-data"
//}...

OpenURI::Meta#content_encoding -> [String] (9341.0)

対象となるリソースの Content-Encoding を文字列の配列として返します。 Content-Encoding ヘッダがない場合は、空の配列を返します。

...象となるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
r
equire 'open-uri'
open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//...
...象となるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
r
equire 'open-uri'
URI.open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]...

絞り込み条件を変える

CGI::QueryExtension#content_type -> String (9319.0)

ENV['CONTENT_TYPE'] を返します。

...ENV['CONTENT_TYPE'] を返します。...

Net::IMAP::ContentDisposition#param -> { String => String } | nil (9319.0)

Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。

...Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。

ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"...

WEBrick::HTTPRequest#content_type -> String | nil (9319.0)

リクエストの Content-Type ヘッダを文字列で返します。

...リクエストの Content-Type ヘッダを文字列で返します。...

WEBrick::HTTPResponse#content_type -> String | nil (9319.0)

Content-Type ヘッダの値を返します。

...Content-Type ヘッダの値を返します。...
<< 1 2 3 ... > >>