501件ヒット
[1-100件を表示]
(0.157秒)
ライブラリ
- ビルトイン (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 (60)
クラス
-
ARGF
. class (24) - 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 (36)
-
source
_ location (7) -
start
_ with? (14)
検索結果
先頭5件
-
String
# delete _ prefix(prefix) -> String (21420.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 (21319.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?... -
REXML
:: Entity # ref -> String | nil (21303.0) -
外部実体(external entity)宣言の URI を返します。
...外部実体(external entity)宣言の URI を返します。
内部実体宣言の場合は nil を返します。... -
String
# start _ with?(*prefixes) -> bool (15249.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!... -
Module
# protected(name) -> String | Symbol (12320.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?... -
Module
# protected() -> nil (12220.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?... -
Module
# protected(*name) -> Array (12220.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?... -
Module
# protected(names) -> Array (12220.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?... -
String
# scanf(format) -> Array (12125.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...かった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc......'scanf'
str = "123 0x45 678 0x90"
p str.scanf("%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%......}
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf(... -
String
# scanf(format) {|*ary| . . . } -> Array (12125.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...かった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc......'scanf'
str = "123 0x45 678 0x90"
p str.scanf("%d%x"){|n, s| [n, s]}
#=> [[123, 69], [678, 144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%......}
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
使用例:
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf(... -
CGI
:: QueryExtension # referer -> String (9302.0) -
ENV['HTTP_REFERER'] を返します。
...ENV['HTTP_REFERER'] を返します。...