348件ヒット
[1-100件を表示]
(0.147秒)
ライブラリ
- ビルトイン (120)
-
cgi
/ core (36) -
net
/ http (24) - openssl (12)
- optparse (24)
-
rake
/ packagetask (12) -
rexml
/ document (24) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ platform (12) -
rubygems
/ specification (24) -
rubygems
/ version (24) - socket (12)
-
webrick
/ httpversion (12)
クラス
-
Encoding
:: Converter (96) -
Encoding
:: UndefinedConversionError (24) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Platform (12) -
Gem
:: Specification (24) -
Gem
:: Version (24) -
Net
:: HTTP (12) -
Net
:: HTTPResponse (12) -
OpenSSL
:: X509 :: StoreContext (12) - OptionParser (24)
-
REXML
:: Document (12) -
REXML
:: XMLDecl (12) -
Rake
:: PackageTask (12) - Socket (12)
-
WEBrick
:: HTTPVersion (12)
モジュール
-
CGI
:: QueryExtension (36)
キーワード
- connect (12)
- convert (12)
-
destination
_ encoding _ name (12) -
error
_ char (12) - finish (12)
-
get
_ path (12) -
http
_ version (12) -
insert
_ output (12) - inspect (12)
-
mark
_ version (12) - putback (24)
- replacement (12)
- replacement= (12)
-
rubygems
_ version (12) -
server
_ name (12) -
server
_ protocol (12) -
server
_ software (12) -
ssl
_ version (12) -
to
_ s (24) - verify (12)
- version (72)
検索結果
先頭5件
-
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (27402.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: Converter # convert(source _ string) -> String (24509.0) -
与えられた文字列を変換して、変換できた結果を返します。 引数の末尾の文字がバイト列の途中で終わっている場合、そのバイト列は変換器内に取り置かれます。 変換を終了させるには Encoding::Converter#finish を呼びます。
...Converter#finish を呼びます。
Encoding::Converter を用いると、文字列の一部または全部を渡して変換を行うことができます。よって、不正なバイトを意識せずにストリームから読み出した文字列を変換したいときには Encoding::Convert......onverter#convert では、これらの例外を捕獲しても、例外を起こしたところから変換を再開することはできません。不正なバイトや変換先で未定義な文字をエスケープしたい場合やさらに細かい指定を行いたい場合は、Encoding::Con......verter#primitive_convert を用います。
@param source_string 変換する文字列の一部または全部です。
@return 変換結果である文字列の一部または全部です。
@raise Encoding::InvalidByteSequenceError 変換元のエンコーディングにおいて不正なバイ... -
OptionParser
# ver -> String (24315.0) -
program_name、version と release から生成したバージョンを表す文字列を返します。
...ogram_name、version と release から生成したバージョンを表す文字列を返します。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.program_name = "Optparse Example"
opts.version = [0, 1]
opts.release =......"2019-05-01"
opts.on_tail("--version", "Show version") do
puts opts.ver # => "Optparse Example 0.1 (2019-05-01)"
exit
end
opts.parse!(ARGV)
end
//}... -
Net
:: HTTPResponse # http _ version -> String (21402.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}... -
OptionParser
# version -> String (18408.0) -
プログラムのバージョンを文字列で返します。
...プログラムのバージョンを文字列で返します。
@return プログラムのバージョンを文字列で返します。
@see OptionParser#ver... -
Gem
:: Specification # mark _ version -> String (18402.0) -
RubyGems のバージョンを内部にセットします。
RubyGems のバージョンを内部にセットします。 -
Gem
:: Specification # rubygems _ version -> String (18402.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
この Gem パッケージを作成した RubyGems のバージョンを返します。 -
Gem
:: Version # version -> String (15403.0) -
バージョン情報を文字列として返します。
...バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//}... -
Gem
:: Platform # version -> String (15402.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。