るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 ... > >>

REXML::Instruction#content -> String | nil (18227.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
//}...

OpenURI::Meta#content_type -> String (12412.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 #=> "tex...
...スの 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 (12384.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"
//}...

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

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

@see 2045...

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

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

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

@see 2045...

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

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

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

@see 2045...
<< 1 2 3 ... > >>