562件ヒット
[501-562件を表示]
(0.056秒)
別のキーワード
クラス
- Array (192)
- MatchData (78)
-
Net
:: HTTP (36) -
Net
:: HTTPResponse (24) - Object (12)
-
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (12) - String (40)
- Symbol (12)
- Thread (24)
-
Thread
:: ConditionVariable (24) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36)
モジュール
- GC (12)
キーワード
- [] (84)
- []= (36)
- at (12)
-
backtrace
_ locations (24) - broadcast (12)
- byteoffset (6)
-
delete
_ prefix (8) -
delete
_ prefix! (8) - deq (24)
-
end
_ with? (18) - fill (72)
-
garbage
_ collect (12) - head (12)
-
local
_ host= (12) -
local
_ port= (12) - offset (24)
- pop (24)
-
read
_ body (24) -
respond
_ to? (12) - shift (24)
- signal (12)
- slice! (36)
-
start
_ with? (18)
検索結果
先頭5件
-
Net
:: HTTP # local _ host=(host) (13.0) -
接続に用いるローカルホスト名を指定します。
...ram host ホスト名、もしくはアドレスを示す文字列
//emlist[例][ruby]{
require 'net/http'
http = Net::HTTP.new("www.example.com")
http.local_host = "192.168.0.5"
http.local_port = "53043"
http.start do |h|
p h.get("/").body
end
//}
@see Net::HTTP#local_host=, Net::HTTP#local_p... -
Net
:: HTTP # local _ port=(port) (13.0) -
接続に用いるローカルポートを設定します。
...ーカルポート(数値、もしくはサービス名文字列)
//emlist[例][ruby]{
require 'net/http'
http = Net::HTTP.new("www.example.com")
http.local_host = "192.168.0.5"
http.local_port = "53043"
http.start do |h|
p h.get("/").body
end
//}
@see Net::HTTP#local_port=, Net::HTTP#local_ho... -
String
# delete _ prefix!(prefix) -> self | nil (13.0) -
self の先頭から破壊的に 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 (13.0) -
文字列の先頭から 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
# end _ with?(*strs) -> bool (13.0) -
self の末尾が strs のいずれかであるとき true を返します。
...ずれかであるとき true を返します。
@param strs パターンを表す文字列 (のリスト)
//emlist[例][ruby]{
"string".end_with?("ing") # => true
"string".end_with?("str") # => false
"string".end_with?("str", "ing") # => true
//}
@see String#start_with?......@param strs パターンを表す文字列 (のリスト)
//emlist[例][ruby]{
"string".end_with?("ing") # => true
"string".end_with?("str") # => false
"string".end_with?("str", "ing") # => true
//}
@see String#start_with?
@see String#delete_suffix, String#delete_suffix!... -
Symbol
# end _ with?(*suffixes) -> bool (13.0) -
self の末尾が suffixes のいずれかであるとき true を返します。
...す。
(self.to_s.end_with?と同じです。)
@param suffixes パターンを表す文字列 (のリスト)
@see Symbol#start_with?
@see String#end_with?
//emlist[][ruby]{
:hello.end_with?("ello") #=> true
# returns true if one of the +suffixes+ matches.
:hello.end_with?("heaven... -
Array
# slice!(nth) -> object | nil (10.0) -
指定した要素を自身から取り除き、取り除いた要素を返します。取り除く要素がなければ nil を返します。
...除く要素がなければ nil
を返します。
@param nth 取り除く要素のインデックスを整数で指定します。
//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.slice!(1) #=> "b"
a #=> ["a", "c"]
a.slice!(-1) #=> "c"
a #=> ["a"]
a.slice!(100) #=...