275件ヒット
[1-100件を表示]
(0.062秒)
種類
- インスタンスメソッド (190)
- 文書 (49)
- 特異メソッド (24)
- モジュール関数 (12)
ライブラリ
- ビルトイン (46)
-
rexml
/ document (132) - rubygems (12)
-
rubygems
/ package / tar _ header (12) - tmpdir (24)
クラス
- Dir (24)
-
Gem
:: Package :: TarHeader (12) -
REXML
:: Attribute (24) -
REXML
:: Attributes (24) -
REXML
:: Element (36) - String (40)
- Symbol (6)
モジュール
- Gem (12)
-
REXML
:: Namespace (48)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) -
local
_ name (12) - mktmpdir (24)
- name (12)
- namespace (24)
- namespaces (24)
- prefixes (24)
-
ruby 1
. 6 feature (12) -
start
_ with? (14) - リテラル (12)
検索結果
先頭5件
-
REXML
:: Namespace # prefix -> String (18224.0) -
prefix (前置修飾子) を返します。
...prefix (前置修飾子) を返します。
@see REXML::Namespace#prefix=... -
REXML
:: Attribute # prefix -> String (18220.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 # -> ""
//}... -
Gem
:: Package :: TarHeader # prefix -> String (18218.0) -
tar のヘッダに含まれる prefix を返します。
...tar のヘッダに含まれる prefix を返します。... -
Gem
. # prefix -> String (18202.0) -
このライブラリがインストールされているディレクトリの親ディレクトリを返します。
このライブラリがインストールされているディレクトリの親ディレクトリを返します。 -
String
# delete _ prefix(prefix) -> String (15367.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 (15260.0) -
self の先頭から破壊的に prefix を削除します。
...的に 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
# start _ with?(*prefixes) -> bool (9160.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...f の先頭が 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!... -
String
# delete _ suffix(suffix) -> String (9137.0) -
文字列の末尾から 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?... -
String
# delete _ suffix!(suffix) -> self | nil (9036.0) -
self の末尾から破壊的に 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?... -
REXML
:: Element # prefixes -> [String] (6223.0) -
self の文脈で定義されている prefix を文字列の配列を返します。
...る 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 # =>...