203件ヒット
[1-100件を表示]
(0.111秒)
ライブラリ
- ビルトイン (35)
-
irb
/ context (60) - json (12)
- openssl (12)
- pathname (12)
-
rexml
/ document (72)
クラス
- Float (11)
-
IRB
:: Context (60) -
OpenSSL
:: X509 :: Extension (12) - Pathname (12)
-
REXML
:: Child (12) -
REXML
:: Element (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Text (36) - Symbol (24)
モジュール
キーワード
-
_ _ to _ s _ _ (12) - extname (12)
- inspect (12)
- inspect? (12)
-
inspect
_ mode= (12) - next (12)
-
next
_ float (11) -
next
_ sibling= (12) - succ (12)
- text= (12)
-
to
_ json (12) - value (12)
- value= (12)
検索結果
先頭5件
-
REXML
:: Text # to _ s -> String (21108.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
...キストとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//... -
OpenSSL
:: X509 :: Extension # to _ s -> String (21102.0) -
拡張領域の内容を、文字列表現で返します。
拡張領域の内容を、文字列表現で返します。 -
REXML
:: ExternalEntity # to _ s -> String (21102.0) -
宣言を文字列化します。
宣言を文字列化します。 -
IRB
:: Context # to _ s -> String (18102.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # _ _ to _ s _ _ -> String (9102.0) -
自身を文字列表現にしたオブジェクトを返します。
自身を文字列表現にしたオブジェクトを返します。 -
REXML
:: Element # text=(text) (6231.0) -
「先頭の」テキストノードを text で置き換えます。
...ノードを text で置き換えます。
テキストノードを1つ以上保持している場合はそのうち
最初のノードを置き換えます。
要素がテキストノードを保持していない場合は新たなテキストノードが追加されます。
text には文字......ext、nil のいずれかが指定できます。
REXML::Text オブジェクトを指定した場合には、それが設定され、
文字列を指定した場合には
REXML::Text.new(text, whitespace(), nil, raw())
で生成される Text オブジェクトが設定されます。
nil を指定......。
@param text 置き換え後のテキスト(文字列、REXML::Text, nil(削除))
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><b/></a>')
doc.to_s # => "<a><b/></a>"
doc.root.text = "Foo"; doc.to_s # => "<a><b/>Foo</a>"
doc.root.text = "Bar"; doc.to_s # => "<a><b/>Ba... -
Pathname
# extname -> String (6117.0) -
File.extname(self.to_s) と同じです。
...File.extname(self.to_s) と同じです。
@see File.extname... -
Float
# next _ float -> Float (6107.0) -
浮動小数点数で表現可能な self の次の値を返します。
...next_float、Float::INFINITY.next_float は
Float::INFINITY を返します。Float::NAN.next_float は
Float::NAN を返します。
//emlist[例][ruby]{
p 0.01.next_float # => 0.010000000000000002
p 1.0.next_float # => 1.0000000000000002
p 100.0.next_float # => 100.00000000000001
p 0.01.next_......float - 0.01 # => 1.734723475976807e-18
p 1.0.next_float - 1.0 # => 2.220446049250313e-16
p 100.0.next_float - 100.0 # => 1.4210854715202004e-14
f = 0.01; 20.times { printf "%-20a %s\n", f, f.to_s; f = f.next_float }
# => 0x1.47ae147ae147bp-7 0.01
# 0x1.47ae147ae147cp-7 0.01000000000000000... -
REXML
:: Child # next _ sibling=(other) (6107.0) -
other を self の次の隣接ノードとします。
...ther を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}...