るりまサーチ

最速Rubyリファレンスマニュアル検索!
513件ヒット [1-100件を表示] (0.220秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

REXML::Entity#ref -> String | nil (30403.0)

外部実体(external entity)宣言の URI を返します。

...外部実体(external entity)宣言の URI を返します。

内部実体宣言の場合は nil を返します。...

String#delete_prefix(prefix) -> String (27620.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?...

String#delete_prefix!(prefix) -> self | nil (27519.0)

self の先頭から破壊的に prefix を削除します。

...prefix を削除します。

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

@return 削除した場合は self、変化しなかった場合は nil

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

@see String#delete_prefi...
...x
@see String#delete_suffix!
@see String#start_with?...

String#start_with?(*prefixes) -> bool (21349.0)

self の先頭が prefixes のいずれかであるとき true を返します。

...prefixes のいずれかであるとき true を返します。

@param prefixes パターンを表す文字列または正規表現 (のリスト)

//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str")...
...# => true
"string".start_with?(/\w/) # => true
"string".start_with?(/\d/) # => false
//}

@see String#end_with?
@see String#delete_prefix, String#delete_prefix!...

CGI::QueryExtension#referer -> String (18502.0)

ENV['HTTP_REFERER'] を返します。

...ENV['HTTP_REFERER'] を返します。...

絞り込み条件を変える

Module#protected(name) -> String | Symbol (18420.0)

メソッドを protected に設定します。

...ッドを protected に設定します。

引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドを protected に設定します。

引数が与えられた時には引数によって指定されたメソッドを protected
に設定...
...it を参照して下さい。

@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。

@raise NameError 存在しないメソッド名を指定した場合に発生します。


@see Module#prote...
...cted_method_defined?...

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

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

...

//emlist[][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.prefix # -> ""
//}...

REXML::Attributes#prefixes -> [String] (18402.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="http://ex...
...ample.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 # => []
//}...

REXML::Element#prefixes -> [String] (18402.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 # =>...

Module#protected() -> nil (18320.0)

メソッドを protected に設定します。

...ッドを protected に設定します。

引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドを protected に設定します。

引数が与えられた時には引数によって指定されたメソッドを protected
に設定...
...it を参照して下さい。

@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。

@raise NameError 存在しないメソッド名を指定した場合に発生します。


@see Module#prote...
...cted_method_defined?...

絞り込み条件を変える

<< 1 2 3 ... > >>