264件ヒット
[201-264件を表示]
(0.103秒)
ライブラリ
-
cgi
/ core (24) -
io
/ console (36) -
irb
/ context (12) - json (24)
-
net
/ imap (36) -
rexml
/ document (108) -
rexml
/ streamlistener (12) -
webrick
/ httprequest (12)
クラス
- IO (36)
-
IRB
:: Context (12) -
Net
:: IMAP :: ContinuationRequest (12) -
Net
:: IMAP :: TaggedResponse (12) -
Net
:: IMAP :: UntaggedResponse (12) -
REXML
:: Element (72) -
REXML
:: Text (36) -
WEBrick
:: HTTPRequest (12)
モジュール
キーワード
- attlistdecl (12)
- context (12)
- context= (12)
-
get
_ text (12) - getch (12)
-
inspect
_ mode= (12) - raw! (12)
- raw= (12)
-
raw
_ data (36) -
raw
_ header (12) - text (12)
- text= (12)
-
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) - value (12)
検索結果
先頭5件
-
REXML
:: Element # context=(value) (6131.0) -
要素の「コンテキスト」を Hash で設定します。
...設定します。
コンテキストとは、 text node (REXML::Text) での特別な文字、特に空白について
の取り扱いについての設定です。
以下の Symbol をハッシュのキーとして使います。
: :respect_whitespace
空白を考慮して欲しい要素の名......デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の配列で指定します。
この指定は :respect_whitespace での指定を上書きします。
す......べての要素で空白を無視して欲しい場合には
:all を指定します。
REXML::Element#whitespace も参照してください。
: :ignore_whitespace_nodes
空白のみからなるノードを無視して欲しい要素の名前の集合を
文字列の配列で指定しま... -
IO
# getch -> String (6117.0) -
raw モードで一文字読み込んだ結果を返します。
...
raw モードで一文字読み込んだ結果を返します。... -
IRB
:: Context # inspect _ mode=(opt) (6107.0) -
実行結果の出力方式を opt に設定します。
...opt に設定します。
@param opt 以下のいずれかを指定します。
: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出力結果を pretty_inspect し......たものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にしたものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marshal.#dump したものを表示します。
@see lib:irb#inspect_mode... -
REXML
:: Element # get _ text(path = nil) -> REXML :: Text | nil (6107.0) -
先頭のテキスト子ノードを返します。
...先頭のテキスト子ノードを返します。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字......返します。
@param path XPath文字列
@see REXML::Element#text
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>) は2つのテキストノード("some text " と " more text"
# を持っているが......、前者を返す
doc.root.get_text.value # => "some text "
//}... -
REXML
:: Element # text(path = nil) -> String | nil (6107.0) -
先頭のテキスト子ノードの文字列を返します。
...クセスできないことに注意してください。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの......します。
@param path XPath文字列
@see REXML::Element#get_text
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>) は2つのテキストノード("some text " と " more text"
# を持っている......が、前者を返す
doc.root.text # => "some text "
//}... -
REXML
:: Text # value -> String (3131.0) -
テキストの内容を非正規化(すべての実体をアンエスケープ)された状態で返します。
...。
このメソッドの返り値では raw モードや entity_filter は無視されます。
@see REXML::Text#raw, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}...