513件ヒット
[1-100件を表示]
(0.220秒)
ライブラリ
- ビルトイン (213)
-
cgi
/ core (12) -
cgi
/ html (36) -
irb
/ context (48) -
irb
/ ext / save-history (12) -
rexml
/ document (72) -
rubygems
/ package / tar _ header (12) - scanf (36)
- socket (72)
クラス
-
ARGF
. class (24) - BasicSocket (12)
- Binding (7)
-
Gem
:: Package :: TarHeader (12) - IO (12)
-
IRB
:: Context (60) - MatchData (4)
- Module (132)
- Object (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: Element (24) -
REXML
:: Entity (12) - Refinement (4)
- Socket (24)
- String (36)
- Symbol (6)
- UDPSocket (36)
モジュール
-
CGI
:: HtmlExtension (36) -
CGI
:: QueryExtension (12) - Kernel (12)
-
REXML
:: Namespace (12)
キーワード
- === (12)
- a (24)
-
alias
_ method (12) - base (12)
- bind (12)
- captures (2)
- connect (12)
- deconstruct (2)
-
delete
_ prefix (8) -
delete
_ prefix! (8) -
deprecate
_ constant (12) -
history
_ file (12) -
import
_ methods (4) -
inplace
_ mode (12) - namespace (12)
- prefix (36)
- prefixes (24)
- private (48)
-
prompt
_ c (12) -
prompt
_ i (12) -
prompt
_ n (12) -
prompt
_ s (12) - protected (48)
- public (12)
- putc (12)
- referer (12)
- scanf (36)
- send (48)
-
source
_ location (7) -
start
_ with? (14)
検索結果
先頭5件
-
REXML
:: Entity # ref -> String | nil (30403.0) -
外部実体(external entity)宣言の URI を返します。
...外部実体(external entity)宣言の URI を返します。
内部実体宣言の場合は nil を返します。... -
String
# delete _ prefix(prefix) -> String (27620.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 (27519.0) -
self の先頭から破壊的に prefix を削除します。
...prefix を削除します。
@param prefix 先頭から削除する文字列を指定します。
@return 削除した場合は self、変化しなかった場合は nil
//emlist[][ruby]{
"hello".delete_prefix!("hel") # => "lo"
"hello".delete_prefix!("llo") # => nil
//}
@see String#delete_prefi......x
@see String#delete_suffix!
@see String#start_with?... -
String
# start _ with?(*prefixes) -> bool (21349.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...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!... -
CGI
:: QueryExtension # referer -> String (18502.0) -
ENV['HTTP_REFERER'] を返します。
...ENV['HTTP_REFERER'] を返します。... -
Module
# protected(name) -> String | Symbol (18420.0) -
メソッドを protected に設定します。
...ッドを protected に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドを protected に設定します。
引数が与えられた時には引数によって指定されたメソッドを protected
に設定......it を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#prote......cted_method_defined?... -
REXML
:: Attribute # prefix -> String (18402.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] (18402.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
...prefix の集合を
文字列の配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://ex......ample.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] (18402.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 # =>... -
Module
# protected() -> nil (18320.0) -
メソッドを protected に設定します。
...ッドを protected に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドを protected に設定します。
引数が与えられた時には引数によって指定されたメソッドを protected
に設定......it を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#prote......cted_method_defined?...