るりまサーチ

最速Rubyリファレンスマニュアル検索!
252件ヒット [1-100件を表示] (0.107秒)

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

検索結果

<< 1 2 3 > >>

Gem::Specification#required_ruby_version -> Gem::Requirement (24536.0)

この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。

...この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。...

Gem::Specification#required_rubygems_version -> Gem::Requirement (24502.0)

この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。

...この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。...

Gem::Specification#rubygems_version -> String (24502.0)

この Gem パッケージを作成した RubyGems のバージョンを返します。

...この Gem パッケージを作成した RubyGems のバージョンを返します。...

Gem::Version#version -> String (24344.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 (24332.0)

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#ver -> String (18278.0)

program_name、version と release から生成したバージョンを表す文字列を返します。

...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 (12320.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::Version#bump -> Gem::Version (6366.0)

最後の一桁を切り上げた新しい Gem::Version のインスタンスを返します。

...Gem::Version のインスタンスを返します。

ただし、英字のプレリリースの部分は、無視されます。

//emlist[][ruby]{
p Gem::Version.new('5.3.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5.3.1.a.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5....
...3.1.3.1').bump # => #<Gem::Version "5.3.1.4">
//}...

Gem::Version#release -> Gem::Version (6360.0)

self をリリースバージョンにした Gem::Version オブジェクトを返します。

...Version オブジェクトを返します。

プレリリースではないバージョンであれば self を返します。

//emlist[例][ruby]{
Gem::Version.new('1.2.0a').release # => #<Gem::Version "1.2.0">
Gem::Version.new('1.2.0').release # => #<Gem::Version "1.2.0">
//}

@see Gem::Version...
<< 1 2 3 > >>