るりまサーチ

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

別のキーワード

  1. io popen
  2. io pipe
  3. io readlines
  4. io each_line
  5. io each

モジュール

検索結果

<< 1 2 3 ... > >>

Gem::Version.new(version) -> Gem::Version (24567.0)

バージョンを表す文字列から、Gem::Version インスタンスを作成します。

...文字列から、Gem::Version インスタンスを作成します。

引数のバージョンを表す文字列とは、 数字かASCII文字の連続であり、ドットで区切られたものです。

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

# Ruby 2.4.1...
...ンは "0" になります。
p Gem::Version.new(' ') #=> #<Gem::Version "0">
//}

@param version
@raise ArgumentError input がバージョンとして不正なオブジェクトである場合に発生します。
これは Gem::Version.correct? により、判定されます...

WEBrick::HTTPVersion.new(version) -> WEBrick::HTTPVersion (24524.0)

HTTPVersion オブジェクトを生成します。version は文字列か HTTPVersion オブジェクトです。

...HTTPVersion オブジェクトを生成します。version は文字列か HTTPVersion オブジェクトです。

@param version HTTP のバージョンを WEBrick::HTTPVersion オブジェクトか文字列で指定します。...

Gem::Version#version -> String (24237.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 (24219.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"
//}...

Psych::Nodes::Document#version -> [Integer] (24213.0)

YAML ドキュメントのバージョンを返します。

...YAML ドキュメントのバージョンを返します。

@see Psych::Nodes::Document#version=,
Psych::Nodes::Document.new...

絞り込み条件を変える

WIN32OLE_TYPELIB#version -> Float (24213.0)

TypeLibのバージョン番号を取得します。

...号、小数点
数部にマイナーバージョン番号を設定したFloatで返します。
@raise WIN32OLERuntimeError TypeLibの属性が読み取れない場合に通知します。

tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.version # => 1.7...

REXML::XMLDecl.new(version = REXML::XMLDecl::DEFAULT_VERSION, encoding = nil, standalone = nil) (18515.0)

新たな XMLDecl オブジェクトを生成して返します。

...新たな XMLDecl オブジェクトを生成して返します。

version
以外は省略可能です。

@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)...

Psych::Nodes::Document.new(version=[], tag_directives=[], implicit=false) -> Psych::Nodes::Document (18320.0)

Document オブジェクトを生成します。

...Document オブジェクトを生成します。

version
にはドキュメントのバージョンを指定します。
[major, minor] という配列で指定します。

tag_directives には tag directive の配列を指定します。
それぞれの tag は [prefix, suffix] という文字...
...
表現します。

implicit にはドキュメントが implicit に始まっているかどうかを
真偽値で指定します。

@param version YAML ドキュメントのバージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始ま...
...YAML 1.1 のドキュメントで、
tag directive を1つ持ち、 implicit にドキュメントが開始
している Document オブジェクトを生成しています。

Psych::Nodes::Document.new(
[1,1],
tenderlovemaking.com,2009:",
true)

@see Psych::Handler#start_document...

Rake::PackageTask.new(name = nil, version = nil) {|t| ... } -> Rake::PackageTask (18314.0)

自身を初期化してタスクを定義します。

...@param version パッケージのバージョンを指定します。
':noversion' というシンボルを指定するとバージョン情報をセットしません。

//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'

Rake::PackageTask.new("sample...

WEBrick::HTTPResponse#http_version -> WEBrick::HTTPVersion (12419.0)

レスポンスの HTTP のバージョンを表す WEBrick::HTTPVersion オブジェクトを返します。

...ョンを表す WEBrick::HTTPVersion オブジェクトを返します。

require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
p res.http_version.class #=> WEBrick::HTTPVersion
p res.http_version.to_s...

絞り込み条件を変える

<< 1 2 3 ... > >>