るりまサーチ

最速Rubyリファレンスマニュアル検索!
538件ヒット [1-100件を表示] (0.150秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:prefix[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

モジュール

検索結果

<< 1 2 3 ... > >>

REXML::Namespace#prefix -> String (27323.0)

prefix (前置修飾子) を返します。

...prefix (前置修飾子) を返します。

@see REXML::Namespace#prefix=...

REXML::Attribute#prefix -> String (27319.0)

属性の名前空間を返します。

...][ruby]{
r
equire 'rexml/document'
e = REXML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "elns"
a = REXML::Attribute.new( "x", "y" )
p a.pre...
...fix # -> ""
//}...

Gem::Package::TarHeader#prefix -> String (24317.0)

tar のヘッダに含まれる prefix を返します。

...tar のヘッダに含まれる prefix を返します。...

Gem.#prefix -> String (24301.0)

このライブラリがインストールされているディレクトリの親ディレクトリを返します。

このライブラリがインストールされているディレクトリの親ディレクトリを返します。

IPAddr#prefix -> Integer (24301.0)

プリフィックス長をビット数で返します。

プリフィックス長をビット数で返します。

絞り込み条件を変える

REXML::SAX2Listener#end_prefix_mapping(prefix) -> () (15524.0)

名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。

...名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。

@param prefix 接頭辞の文字列が渡されます...

REXML::SAX2Listener#start_prefix_mapping(prefix, uri) -> () (15442.0)

名前空間の接頭辞(prefix)が導入されたときに呼び出される コールバックメソッドです。

...空間の接頭辞(prefix)が導入されたときに呼び出される
コールバックメソッドです。

以下のようなXMLを処理
<a xmlns:foo="http://foo.example.org/">
<foo:b />
</a>
すると
start_prefix_mapping("foo", "http://foo.example.org/")
start_element(nil, "a",...
...ample.org/"})
:
end_element(nil, "a", "a")
end_prefix_mapping("foo")
の順で呼びだされます。つまり名前空間を導入した要素の start_element の前に
start_prefix_mapping が呼びだされます。

@param prefix 接頭辞の文字列が渡されます
@param uri 接...
...頭辞に対応する URI 文字列が渡されます...

REXML::Element#prefixes -> [String] (15322.0)

self の文脈で定義されている prefix を文字列の配列を返します。

... prefix を文字列の配列を返します。

対象の要素とその外側の要素で定義されている prefix を返します。

//emlist[][ruby]{
r
equire 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
doc.elements['//b'].prefixes # =>...

REXML::Attributes#prefixes -> [String] (15316.0)

self の中で宣言されている prefix の集合を 文字列の配列で返します。

...いる prefix の集合を
文字列の配列で返します。

self が属する要素より上位の要素で定義されているものは含みません。

//emlist[][ruby]{
r
equire 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="htt...
...p://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p doc.root.attributes.prefixes # => ["foo", "bar"]
p a.attributes.prefixes # => []
//}...

String#delete_prefix(prefix) -> String (12548.0)

文字列の先頭から prefix を削除した文字列のコピーを返します。

... prefix を削除した文字列のコピーを返します。

@param prefix 先頭から削除する文字列を指定します。

@return 文字列の先頭から prefix を削除した文字列のコピー

//emlist[][ruby]{
"hello".delete_prefix("hel") # => "lo"
"hello".delete_prefix("llo")...
...# => "hello"
//}

@see String#delete_prefix!
@see String#delete_suffix
@see String#start_with?...

絞り込み条件を変える

<< 1 2 3 ... > >>