16件ヒット
[1-16件を表示]
(0.186秒)
ライブラリ
- ビルトイン (2)
-
net
/ http (2) - optparse (2)
-
rake
/ packagetask (1) -
rexml
/ document (2) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ platform (1) -
rubygems
/ specification (2) -
rubygems
/ version (2) -
webrick
/ httpversion (1)
クラス
-
Encoding
:: UndefinedConversionError (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Platform (1) -
Gem
:: Specification (2) -
Gem
:: Version (2) -
Net
:: HTTP (1) -
Net
:: HTTPResponse (1) - OptionParser (2)
-
REXML
:: Document (1) -
REXML
:: XMLDecl (1) -
Rake
:: PackageTask (1) -
WEBrick
:: HTTPVersion (1)
キーワード
-
destination
_ encoding _ name (1) -
error
_ char (1) -
get
_ path (1) -
http
_ version (1) -
mark
_ version (1) -
rubygems
_ version (1) -
ssl
_ version (1) -
to
_ s (2)
検索結果
先頭5件
-
Gem
:: Version # version -> String (73003.0) -
バージョン情報を文字列として返します。
バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//} -
REXML
:: Document # version -> String (72946.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
XML 宣言に含まれている XML 文書のバージョンを返します。
文書が XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version # => "1.0"
//} -
OptionParser
# version -> String (72928.0) -
プログラムのバージョンを文字列で返します。
プログラムのバージョンを文字列で返します。
@return プログラムのバージョンを文字列で返します。
@see OptionParser#ver -
Gem
:: Platform # version -> String (72910.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
REXML
:: XMLDecl # version -> String (72910.0) -
XML文書のバージョンを文字列で返します。
XML文書のバージョンを文字列で返します。 -
Rake
:: PackageTask # version -> String (72910.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
OptionParser
# ver -> String (54730.0) -
program_name、version と release から生成したバージョンを表す文字列を返します。
program_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 v... -
Net
:: HTTP # ssl _ version -> String | Symbol | nil (36928.0) -
利用するプロトコルの種類を返します。
利用するプロトコルの種類を返します。
@see Net::HTTP#ssl_version= -
Net
:: HTTPResponse # http _ version -> String (36928.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"
//} -
Gem
:: Specification # mark _ version -> String (36910.0) -
RubyGems のバージョンを内部にセットします。
RubyGems のバージョンを内部にセットします。 -
Gem
:: Specification # rubygems _ version -> String (36910.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
この Gem パッケージを作成した RubyGems のバージョンを返します。 -
Gem
:: Version # to _ s -> String (18403.0) -
バージョン情報を文字列として返します。
バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//} -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (18307.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding -
Encoding
:: UndefinedConversionError # error _ char -> String (18307.0) -
エラーを発生させた1文字を文字列で返します。
エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//} -
WEBrick
:: HTTPVersion # to _ s -> String (18307.0) -
自身を文字列に変換して返します。
自身を文字列に変換して返します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1" -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (928.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。