るりまサーチ

最速Rubyリファレンスマニュアル検索!
635件ヒット [1-100件を表示] (0.069秒)
トップページ > クエリ:String[x] > クエリ:content[x]

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

検索結果

<< 1 2 3 ... > >>

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

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

...ersion="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\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...

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

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

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

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

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

@see SM::SimpleMarkup#convert

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

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

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

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

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

Net::HTTPHeader#content_type -> String|nil (6242.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/form-data'
req.content_type # => "multipart/form-data"
//}...

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

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

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

例:

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

例:

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

絞り込み条件を変える

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

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

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

Net::IMAP::BodyTypeBasic#content_id -> String | nil (6218.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeMessage#content_id -> String | nil (6218.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeText#content_id -> String | nil (6218.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

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

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>