るりまサーチ

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

別のキーワード

  1. bigdecimal fix
  2. fix bigdecimal
  3. chr2fix
  4. int2fix

キーワード

検索結果

<< 1 2 3 ... > >>

BigDecimal#fix -> BigDecimal (18102.0)

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

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

IPAddr#prefix=(prefixlen) (6201.0)

プリフィックス長を prefixlen に設定します。

...プリフィックス長を prefixlen に設定します。

@param prefixlen 設定したいプリフィックス長をビット数で指定します。

@raise IPAddr::InvalidPrefixError 引数 prefixlen に整数以外のオブジェクトを指定した場合に発生します。...

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

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

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

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

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

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

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

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

...refix を削除します。

@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 (6201.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 (6201.0)

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

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

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

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

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

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

String#delete_suffix(suffix) -> String (6201.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?...

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

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

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

IPAddr#prefix -> Integer (6101.0)

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

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

絞り込み条件を変える

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

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

...t.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] (6101.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 # => []
//}...
<< 1 2 3 ... > >>