314件ヒット
[1-100件を表示]
(0.143秒)
ライブラリ
- ビルトイン (143)
- bigdecimal (11)
- ipaddr (18)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (22)
-
rexml
/ document (77) -
rexml
/ sax2listener (22) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- BigDecimal (11)
- Bignum (30)
- Fixnum (57)
- IPAddr (18)
-
MiniTest
:: Unit (2) - Module (1)
-
REXML
:: Attribute (11) -
REXML
:: Attributes (11) -
REXML
:: Element (33) - Regexp (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (35)
- Symbol (10)
モジュール
- Kernel (22)
-
REXML
:: Namespace (22) -
REXML
:: SAX2Listener (22)
キーワード
- % (6)
- * (6)
- ** (6)
- + (6)
- - (6)
-
/ (6) - < (3)
- <= (3)
- <=> (3)
- == (3)
- > (3)
- >= (3)
-
add
_ namespace (11) - basename (18)
-
bit
_ length (3) -
create
_ makefile (11) -
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) - div (6)
-
end
_ prefix _ mapping (11) -
end
_ with? (5) - even? (3)
- failures (1)
- fdiv (3)
-
fixed
_ encoding? (11) -
infect
_ with _ assertions (1) -
install
_ files (11) - mask (11)
- modulo (6)
- namespace (11)
- odd? (3)
- prefix (22)
- prefix= (18)
- prefixes (22)
- remainder (3)
- run (1)
-
start
_ prefix _ mapping (11) -
start
_ with? (12) -
to
_ f (3) - zero? (3)
検索結果
先頭5件
-
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='<'/>
</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"]
//}...