463件ヒット
[1-100件を表示]
(0.171秒)
ライブラリ
- ビルトイン (202)
- bigdecimal (12)
- ipaddr (28)
-
irb
/ output-method (12) - mathn (3)
-
minitest
/ spec (1) -
minitest
/ unit (7) - mkmf (24)
- pathname (12)
-
rexml
/ document (84) -
rexml
/ sax2listener (24) - rss (12)
-
rubygems
/ package / tar _ header (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httprequest (12)
クラス
- BigDecimal (12)
- Bignum (45)
- Fixnum (84)
-
Gem
:: Package :: TarHeader (12) - IPAddr (28)
-
IRB
:: OutputMethod (12) -
MiniTest
:: Unit (6) - Module (1)
- Pathname (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: Element (36) -
RSS
:: NSError (12) - Regexp (12)
-
RubyVM
:: InstructionSequence (12) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (40)
- Symbol (12)
-
WEBrick
:: HTTPRequest (12)
モジュール
- Kernel (24)
-
MiniTest
:: Assertions (1) -
REXML
:: Namespace (24) -
REXML
:: SAX2Listener (24)
キーワード
- % (6)
- & (6)
- * (6)
- ** (6)
- + (6)
- - (6)
- -@ (3)
-
/ (9) - < (3)
- <= (3)
- <=> (6)
- == (3)
- > (3)
- >= (3)
- ^ (6)
-
_ assertions (1) -
add
_ namespace (12) -
assertion
_ count (1) - basename (30)
-
bit
_ length (3) -
create
_ makefile (12) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - div (6)
- divmod (3)
-
end
_ prefix _ mapping (12) -
end
_ with? (6) - errors (1)
- even? (3)
- failures (1)
- fdiv (3)
-
fixed
_ encoding? (12) - fixup (12)
-
infect
_ with _ assertions (1) - inspect (3)
-
install
_ files (12) - magnitude (6)
- mask (12)
- modulo (6)
- namespace (12)
- ppx (12)
- prefix (56)
- prefix= (20)
- prefixes (24)
- remainder (3)
- run (1)
- size (6)
- skips (1)
-
start
_ prefix _ mapping (12) -
start
_ with? (14) -
test
_ count (1) -
to
_ a (12) -
to
_ s (3) - zero? (3)
- | (6)
検索結果
先頭5件
-
BigDecimal
# fix -> BigDecimal (21202.0) -
self の整数部分を新しい BigDecimal オブジェクトにして返します。
...self の整数部分を新しい BigDecimal オブジェクトにして返します。... -
IPAddr
# prefix=(prefixlen) (12401.0) -
プリフィックス長を prefixlen に設定します。
...プリフィックス長を prefixlen に設定します。
@param prefixlen 設定したいプリフィックス長をビット数で指定します。
@raise IPAddr::InvalidPrefixError 引数 prefixlen に整数以外のオブジェクトを指定した場合に発生します。... -
REXML
:: SAX2Listener # start _ prefix _ mapping(prefix , uri) -> () (12401.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 接頭辞の文字列が渡... -
String
# delete _ prefix!(prefix) -> self | nil (12401.0) -
self の先頭から破壊的に prefix を削除します。
...self の先頭から破壊的に prefix を削除します。
@param prefix 先頭から削除する文字列を指定します。
@return 削除した場合は self、変化しなかった場合は nil
//emlist[][ruby]{
"hello".delete_prefix!("hel") # => "lo"
"hello".delete_prefix!("llo") # => n......il
//}
@see String#delete_prefix
@see String#delete_suffix!
@see String#start_with?... -
String
# delete _ suffix!(suffix) -> self | nil (12401.0) -
self の末尾から破壊的に suffix を削除します。
...self の末尾から破壊的に suffix を削除します。
@param suffix 末尾から削除する文字列を指定します。
@return 削除した場合は self、変化しなかった場合は nil
//emlist[][ruby]{
"hello".delete_suffix!("llo") # => "he"
"hello".delete_suffix!("hel") # => n......il
//}
@see String#chomp!
@see String#chop!
@see String#delete_prefix!
@see String#delete_suffix
@see String#end_with?... -
REXML
:: SAX2Listener # end _ prefix _ mapping(prefix) -> () (12301.0) -
名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。
...名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。
@param prefix 接頭辞の文字列が渡されます... -
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) -> 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
:: Attribute # prefix -> String (12231.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 # -> ""
//}... -
Regexp
# fixed _ encoding? -> bool (12225.0) -
正規表現が任意の ASCII 互換エンコーディングとマッチ可能な時に false を返します。
...se を返します。
//emlist[例][ruby]{
# -*- coding:utf-8 -*-
r = /a/
r.fixed_encoding? # => false
r.encoding # => #<Encoding:US-ASCII>
r =~ "\u{6666} a" # => 2
r =~ "\xa1\xa2 a".force_encoding("eu......ce_encoding("euc-jp") # => 0
r = /a/u
r.fixed_encoding? # => true
r.encoding # => #<Encoding:UTF-8>
r =~ "\u{6666} a" # => 2
begin
r =~ "\xa1\xa2".force_encoding("euc-jp")
rescue => e
e.......# => Encoding::CompatibilityError
end
r =~ "abc".force_encoding("euc-jp") # => 0
r = /\u{6666}/
r.fixed_encoding? # => true
r.encoding # => #<Encoding:UTF-8>
r =~ "\u{6666} a" # => 0
begin...