204件ヒット
[1-100件を表示]
(0.063秒)
別のキーワード
ライブラリ
- ビルトイン (12)
-
net
/ http (12) - optparse (36)
-
rexml
/ document (48) - rubygems (12)
-
rubygems
/ requirement (36) -
rubygems
/ specification (48)
クラス
-
Gem
:: Requirement (36) -
Gem
:: Specification (48) -
Net
:: HTTPResponse (12) - OptionParser (24)
-
REXML
:: Document (24) -
REXML
:: Instruction (24) -
RubyVM
:: InstructionSequence (12)
モジュール
- Kernel (12)
-
OptionParser
:: Arguable (12)
キーワード
- === (12)
- =~ (12)
- content (12)
- gem (12)
- getopts (12)
-
http
_ version (12) -
on
_ tail (12) -
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) -
satisfied
_ by? (12) -
stand
_ alone? (12) - target (12)
-
to
_ a (12) - ver (12)
検索結果
先頭5件
-
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (33636.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
...この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。... -
Gem
:: Specification # required _ ruby _ version=(requirement) (33636.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
...この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement... -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (33602.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。... -
Gem
:: Specification # required _ rubygems _ version=(requirement) (33602.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement... -
RubyVM
:: InstructionSequence # to _ a -> Array (29043.0) -
self の情報を 14 要素の配列にして返します。
...。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフ......。
: args
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]
より詳細な情報については......構成する命令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2,... -
REXML
:: Document # version -> String (24232.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"
//}... -
Net
:: HTTPResponse # http _ version -> String (15226.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
# on _ tail(*arg , &block) -> self (9216.0) -
オプションを取り扱うためのブロックを自身の持つリストの最後に登録します。
...ます。
--version や --help の説明をサマリの最後に表示したい時に便利です。
@param arg OptionParser#on と同様です。
@param block OptionParser#on と同様です。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--in......pts.on_tail("-h", "--help")
end
puts opts.help
# => Usage: test [options]
# -i, --init
# -u, --update
# -h, --help
//}
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit
end
opts.on_tail("--version", "......Show version") do
puts OptionParser::Version.join('.')
exit
end
//}
@see OptionParser#on, OptionParser#on_head... -
REXML
:: Instruction # content -> String | nil (9125.0) -
XML 処理命令の内容を返します。
...。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"......text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...