るりまサーチ

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

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

BigDecimal#fix -> BigDecimal (21202.0)

self の整数部分を新しい BigDecimal オブジェクトにして返します。

...self の整数部分を新しい BigDecimal オブジェクトにして返します。...

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

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

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

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

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

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

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

String#delete_prefix(prefix) -> String (12301.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_suffix!(suffix) -> self | nil (12301.0)

self の末尾から破壊的に suffix を削除します。

...lf の末尾から破壊的に suffix を削除します。

@param suffix 末尾から削除する文字列を指定します。

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

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

@see String#chomp!
@see String#chop!
@see String#delete_prefix!
@see String#delete_suffix
@see String#end_with?...

String#delete_suffix(suffix) -> String (12301.0)

文字列の末尾から suffix を削除した文字列のコピーを返します。

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

@param suffix 末尾から削除する文字列を指定します。

@return 文字列の末尾から suffix を削除した文字列のコピー

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

@see String#chomp
@see String#chop
@see String#delete_prefix
@see String#delete_suffix!
@see String#end_with?...

絞り込み条件を変える

REXML::Namespace#prefix=(value) (9201.0)

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

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

@param value prefix文字列
@see REXML::Namespace#prefix...

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

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

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

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

REXML::SAX2Listener#start_prefix_mapping(prefix, uri) -> () (9201.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", "a", {"xmlns:foo"...
...=> "http://foo.example.org/"})
:
end_element(nil, "a", "a")
end_prefix_mapping("foo")
の順で呼びだされます。つまり名前空間を導入した要素の start_element の前に
start_prefix_mapping が呼びだされます。

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

Fixnum#bit_length -> Integer (9101.0)

self を表すのに必要なビット数を返します。

...self を表すのに必要なビット数を返します。

「必要なビット数」とは符号ビットを除く最上位ビットの位置の事を意味しま
す。2**n の場合は n+1 になります。self にそのようなビットがない(0 や
-1 である)場合は 0 を返しま...
...例: ceil(log2(int < 0 ? -int : int+1)) と同じ結果

(-2**12-1).bit_length # => 13
(-2**12).bit_length # => 12
(-2**12+1).bit_length # => 12
-0x101.bit_length # => 9
-0x100.bit_length # => 8
-0xff.bit_length # => 8
-2.bit_length...
..._length # => 0
0.bit_length # => 0
1.bit_length # => 1
0xff.bit_length # => 8
0x100.bit_length # => 9
(2**12-1).bit_length # => 12
(2**12).bit_length # => 13
(2**12+1).bit_length # => 13

@see Bignum#bit_l...

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

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

...ます。

//emlist[][ruby]{
require '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] (9101.0)

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

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

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

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example....
...org/foo"
xmlns:bar="http://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 # => []
//}...

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

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

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

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

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