612件ヒット
[1-100件を表示]
(0.162秒)
ライブラリ
- ビルトイン (60)
-
cgi
/ html (48) - csv (12)
-
net
/ imap (12) -
rake
/ rdoctask (192) -
rexml
/ document (180) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24) -
webrick
/ httpresponse (72)
クラス
- CSV (12)
- IO (12)
-
Net
:: IMAP (12) -
REXML
:: DocType (156) -
REXML
:: Document (12) -
REXML
:: Text (12) -
Rake
:: RDocTask (192) - String (48)
-
WEBrick
:: HTTPResponse (72)
モジュール
-
CGI
:: Html3 (12) -
CGI
:: Html4 (12) -
CGI
:: Html4Fr (12) -
CGI
:: Html4Tr (12) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (24)
キーワード
- [] (12)
- add (12)
-
attribute
_ of (12) -
attributes
_ of (12) - body= (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - define (12)
- doctype (96)
-
doctype
_ end (12) - entities (12)
- entity (12)
-
external
_ id (12) - fetch (12)
- hex (12)
- ioctl (24)
- main (12)
- main= (12)
- name (24)
- namespaces (12)
- notation (12)
- notations (12)
-
option
_ list (12) -
option
_ string (12) - public (12)
- quote (12)
-
rdoc
_ dir (12) -
rdoc
_ dir= (12) -
rdoc
_ files (12) -
rdoc
_ files= (12) - system (12)
- template (12)
- title (12)
- title= (12)
-
to
_ f (12) -
to
_ i (12) -
to
_ s (12) - write (12)
検索結果
先頭5件
-
String
# oct -> Integer (21280.0) -
文字列を 8 進文字列であると解釈して、整数に変換します。
...//emlist[例][ruby]{
p "10".oct # => 8
p "010".oct # => 8
p "8".oct # => 0
//}
oct は文字列の接頭辞 ("0", "0b", "0B", "0x", "0X") に応じて
8 進以外の変換も行います。
//emlist[例][ruby]{
p "0b10".oct # => 2
p "10".oct # => 8
p "010".oct # => 8
p "0x10".oct # =>......。
//emlist[例][ruby]{
p "-010".oct # => -8
p "-0x10".oct # => -16
p "-0b10".oct # => -2
p "1_0_1x".oct # => 65
//}
@see String#hex, String#to_i, String#to_f,
Kernel.#Integer, Kernel.#Float
逆に、数値を文字列に変換するにはKernel.#sprintf,
String#%, Integer#to_s... -
IO
# ioctl(cmd , arg = 0) -> Integer (15201.0) -
IO に対してシステムコール ioctl を実行し、その結果を返します。 機能の詳細は ioctl(2) を参照してください。
...
IO に対してシステムコール ioctl を実行し、その結果を返します。
機能の詳細は ioctl(2) を参照してください。
@param cmd IO に対するコマンドを整数で指定します。どのようなコマンドが使えるかはプラットフォームに依存し......す。整数の時にはその値を ioctl に渡します。
文字列の場合には Array#pack した構造体だとみなして渡します。
arg が nil か false の場合には 0を、true の場合には 1 を渡します。
@raise IOError 既に close されている... -
CSV
# ioctl(cmd , arg = 0) -> Integer (12201.0) -
IO#ioctl に委譲します。
...
IO#ioctl に委譲します。
@see IO#ioctl... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (9201.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...ト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていない......かの場合は nil を返します。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book......UIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => ni... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (9201.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...XML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE book......<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_o... -
REXML
:: DocType # entities -> { String => REXML :: Entity } (9201.0) -
DTD で宣言されている実体の集合を Hash で返します。
...ity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれています。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.enti......ties # => { "gt" => #<REXML::Entity: ...>,
# "lt" => #<REXML::Entity: ...>, ... }
p doctype.entities["bar"].to_s # => "<!ENTITY bar \"barbarbarbar\">"
p doctype.entities["gt"].to_s # => "<!ENTITY gt \">\">"
//}... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (9201.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
...DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名... -
REXML
:: DocType # notations -> [REXML :: NotationDecl] (9201.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) を 配列で返します。
...DTD に含まれている記法宣言 (REXML::NotationDecl) を
配列で返します。... -
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (9201.0) -
output に DTD を出力します。
...の IO オブジェクト
@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定しないでください。
@param ie_hack 無視されます。指定しないでください。
//emlist[][ruby]{
require 'rexml/document'
doctype = R......new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)...