るりまサーチ

最速Rubyリファレンスマニュアル検索!
4257件ヒット [101-200件を表示] (0.087秒)

別のキーワード

  1. openssl to_text
  2. prettyprint text
  3. cgi text_field
  4. cgi/html text_field
  5. rexml/document text

クラス

キーワード

検索結果

<< < 1 2 3 4 ... > >>

REXML::Element#get_text(path = nil) -> REXML::Text | nil (6251.0)

先頭のテキスト子ノードを返します。

...REXML::Text#value も参照してください。

path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。

テキストノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#text

//emli...
...st[][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#each_element_with_text(text = nil, max = 0, name = nil) {|element| ... } -> () (6245.0)

テキストを子ノードとして 持つすべての子要素を引数としてブロックを呼び出します。

...テキストを子ノードとして
持つすべての子要素を引数としてブロックを呼び出します。

text
を指定すると、テキストの内容が text であるもののみを対象とします。
maxを指定すると、対象となる子要素の先頭 max 個のみが対...
...)。

@param text テキストの中身(文字列)
@param max ブロック呼出の対象とする子要素の最大個数
@param name xpath文字列

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'
doc.root.each_element_with_text {|e|p e}
#...
...>> <b> ... </>
# >> <c> ... </>
# >> <d> ... </>
doc.root.each_element_with_text('b'){|e|p e}
# >> <b> ... </>
# >> <c> ... </>
doc.root.each_element_with_text('b', 1){|e|p e}
# >> <b> ... </>
doc.root.each_element_with_text(nil, 0, 'd'){|e|p e}
# >> <d> ... </>
//}...

IRB::ExtendCommand::Nop#irb_context -> IRB::Context (6201.0)

irb の現在の設定(IRB::Context)を返します。

...irb の現在の設定(IRB::Context)を返します。...

IRB::ExtendCommandBundle#irb_context -> IRB::Context (6201.0)

現在の irb に関する IRB::Context を返します。

...現在の irb に関する IRB::Context を返します。...

OpenSSL::SSL::SSLSocket#context -> OpenSSL::SSL::SSLContext (6201.0)

SSLSocket オブジェクトを生成する時に渡されたコンテクストを返します。

SSLSocket オブジェクトを生成する時に渡されたコンテクストを返します。

@see OpenSSL::SSL::SSLSocket.new

絞り込み条件を変える

REXML::Element#texts -> [REXML::Texts] (6201.0)

すべてのテキスト子ノードの配列を返します。

すべてのテキスト子ノードの配列を返します。

返される配列は freeze されます。

WEBrick::GenericServer#ssl_context -> OpenSSL::SSL::SSLContext | nil (6201.0)

サーバが保持する OpenSSL::SSL::SSLContext オブジェクトを返します。

...サーバが保持する OpenSSL::SSL::SSLContext オブジェクトを返します。...

CGI::HtmlExtension#text_field(name = "", value = nil, size = 40, maxlength = nil) -> String (6170.0)

タイプが text である input 要素を生成します。

...タイプが text である input 要素を生成します。

@param name name 属性の値を指定します。

@param value 属性の値を指定します。

@param size size 属性の値を指定します。

@param maxlength maxlength 属性の値を指定します。

例:
text
_field("name...
...TYPE="text" NAME="name" SIZE="40">

text
_field("name", "value")
# <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="40">

text
_field("name", "value", 80)
# <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80">

text
_field("name", "value", 80, 200)
# <INPUT TYPE="text" NAME...

CGI::HtmlExtension#text_field(attributes) -> String (6140.0)

タイプが text である input 要素を生成します。

...タイプが text である input 要素を生成します。

@param attributes 属性をハッシュで指定します。

text
_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="text" NAME="name" VALUE="value">...
<< < 1 2 3 4 ... > >>