ライブラリ
- ビルトイン (174)
-
cgi
/ core (11) - csv (11)
-
net
/ http (264) - objspace (22)
- open-uri (48)
- openssl (11)
- optparse (22)
-
rdoc
/ parser / ruby (22) -
rexml
/ document (154) - socket (22)
- un (11)
- uri (11)
-
webrick
/ httprequest (11) - win32ole (88)
クラス
- Addrinfo (11)
- CGI (11)
- CSV (11)
- Data (2)
- Enumerator (5)
- File (11)
-
File
:: Stat (11) -
Net
:: HTTP (165) - OptionParser (22)
-
RDoc
:: Parser :: Ruby (22) -
REXML
:: DocType (99) -
REXML
:: Instruction (22) -
REXML
:: Text (11) -
RubyVM
:: AbstractSyntaxTree :: Node (12) -
RubyVM
:: InstructionSequence (33) - Socket (11)
-
URI
:: FTP (11) -
WEBrick
:: HTTPRequest (11) -
WIN32OLE
_ METHOD (11) -
WIN32OLE
_ TYPE (44) -
WIN32OLE
_ TYPELIB (11) -
WIN32OLE
_ VARIANT (11)
モジュール
- Enumerable (22)
- Kernel (81)
-
Net
:: HTTPHeader (99) - ObjectSpace (22)
-
OpenURI
:: Meta (44) -
RubyVM
:: AbstractSyntaxTree (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ASN1 (11)
- Instruction (11)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NORMAL (11)
- NotationDecl (11)
- Ruby用語集 (11)
- SINGLE (11)
-
WIN32OLE
_ TYPE (11) -
attribute
_ of (11) -
attributes
_ of (11) - cgi (11)
-
cgi
/ session (11) - charset (22)
- children (6)
- content (11)
-
content
_ type (22) -
content
_ type= (11) -
count
_ tdata _ objects (11) -
default
_ event _ sources (11) - disasm (11)
- disassemble (11)
- entities (11)
- entity (11)
-
external
_ id (11) - fail (33)
-
form
_ data= (11) - ftype (22)
- get2 (22)
- getaddrinfo (11)
- head (11)
- head2 (22)
- header (11)
- helpfile (11)
- inspect (11)
- invkind (11)
- key? (11)
-
main
_ type (11) - mkmf (11)
- name (11)
- new (33)
- of (4)
-
ole
_ classes (11) - open (4)
- open-uri (11)
- parse (4)
-
parse
_ file (4) - path (11)
- post (22)
- post2 (22)
- produce (5)
- public (11)
- query (11)
- raise (33)
- rdoc (11)
-
rdoc
/ markdown (11) -
reachable
_ objects _ from (11) - reject (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) - rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
set
_ content _ type (11) -
set
_ form _ data (11) -
slice
_ before (22) -
sub
_ type (11) - system (11)
- target (11)
-
test
/ unit (1) -
to
_ a (11) -
type
_ params (11) - typelibs (11)
- unnormalize (11)
-
webrick
/ cgi (11) - with (2)
- write (11)
- yaml (11)
- クラス/メソッドの定義 (11)
- 制御構造 (11)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (21213.0) -
self の種類を Symbol で返します。
...self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//}... -
ruby 1
. 6 feature (10417.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...ruby 1.6 feature
ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。
((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。
== 1.6.8 (2002-12-24) ->......stable-snapshot
: 2003-01-22: errno
EAGAIN と EWOULDBLOCK が同じ値のシステムで、EWOULDBLOCK がなくなっ
ていました。現在は、このようなシステムでは、EWOULDBLOCK は、EAGAIN
として定義されています。(これは 1.6.7 とは異なる挙......h.keys[0].upcase!
p a
=> ruby 1.6.7 (2002-03-01) [i586-linux]
"KEY"
=> -:3:in `upcase!': can't modify frozen string (TypeError)
from -:3
ruby 1.6.7 (2002-08-01) [i586-linux]
: 2002-06-10 Fixnum#>>, <<
負の数に対して右... -
WIN32OLE
_ TYPE . typelibs -> [String] (9212.0) -
システムに登録されているすべてのTypeLibのドキュメント文字列を取得します。
...TypeLibのドキュメント文字列を取得します。
@return システムに登録されているすべてのTypeLibのドキュメント文字列の配
列を返します。
Ruby-1.9.1からは、すべてのTypeLibのドキュメント文字列を取得するには、
WIN32OLE_TYPE......LIBオブジェクトを利用して、以下のように記述してくだ
さい。
WIN32OLE_TYPELIB.typelibs.map {|t| t.name}... -
OpenURI
:: Meta # content _ type -> String (6343.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=(type) (6300.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.......example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (6300.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.......example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # type _ params -> Hash (6295.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
...Content-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.h......tml')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}... -
Net
:: HTTPHeader # content _ type -> String|nil (6281.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"
//}... -
Net
:: HTTPHeader # main _ type -> String|nil (6225.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//}... -
Net
:: HTTPHeader # sub _ type -> String|nil (6225.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.sub_type # => "html"
//}...