るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. open3 capture2e
  4. matrix rank_e
  5. matrix det_e

検索結果

<< 1 2 3 > >>

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

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

...//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
E
OS
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
//}...

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

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

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

@see 2045...

OpenURI::Meta#content_type -> String (15262.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 #=> "text/h...
... 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 #=> "text/...

Net::HTTPHeader#content_type -> String|nil (12258.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"
//}...

WEBrick::HTTPResponse#content_type=(val) (12236.0)

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

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

@param val Content-Type ヘッダの値を文字列で指定します。

res.content_type = "text/html"

@see WEBrick::HTTPUtils.#mime_type...

絞り込み条件を変える

Net::IMAP::BodyTypeText#description -> String | nil (12117.0)

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

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

@see 2045...

Net::IMAP::BodyTypeText#encoding -> String (12117.0)

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

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

@see 2045...

Net::IMAP::BodyTypeText#disposition -> Net::IMAP::ContentDisposition | nil (9217.0)

Content-Dispotition の値を返します。

...Content-Dispotition の値を返します。

Net::IMAP::ContentDisposition オブジェクトを返します。

@see 1806, 2183...

REXML::StreamListener#entitydecl(content) -> () (6338.0)

DTDの実体宣言をパースしたときに呼び出されるコールバックメソッドです。

...aram content 実体宣言が配列で渡されます

実体宣言の書き方によって content に渡されるデータの形式が異なります。

//emlist[][ruby]{
require 'rexml/parsers/baseparser'
require 'rexml/parsers/streamparser'
require 'rexml/streamlistener'
xml = <<EOS
<!DOCTYPE ro...
...ot [
<!ENTITY % YN '"Yes"'>
<!ENTITY % YN 'Yes'>
<!ENTITY WhatHeSaid "He said %YN;">
<!ENTITY open-hatch SYSTEM "http://www.textuality.com/boilerplate/OpenHatch.xml">
<!ENTITY open-hatch PUBLIC "-//Textuality//TEXT Standard open-hatch boilerplate//EN" "http://www.textuality.com/boilerplate/OpenHatch...
...<!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
]>
<root />
E
OS

class Listener
include REXML::StreamListener
def entitydecl(content); p content; end
e
nd
REXML::Parsers::StreamParser.new(xml, Listener.new).parse
# >> ["YN", "\"Yes\"", "%"]
# >> ["YN", "Yes", "%"]
# >> ["WhatHeSai...

CGI#header(options = "text/html") -> String (6292.0)

HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。

...: type
Content
-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真ならば、HTTP のバージョン、ステータスコード、
Date ヘッ...
...ダをセットします。また Server と Connection の各ヘッダにもデフォルト値をセットします。
偽を指定する場合は、これらの値を明示的にセットしてください。
: status
HTTP のステータスコードを指定します。
このリストの...
...ます。
: server
サーバソフトウェアの名称指定します。Server ヘッダに対応します。
: connection
接続の種類を指定します。Connection ヘッダに対応します。
: length
送信するコンテンツの長さを指定します。Content-Length ヘッダ...

絞り込み条件を変える

<< 1 2 3 > >>