ライブラリ
- ビルトイン (52)
- bigdecimal (2)
-
cgi
/ html (2) -
net
/ http (2) -
net
/ imap (2) - open3 (2)
- openssl (12)
- rake (7)
-
rdoc
/ context (1) - rss (12)
-
rubygems
/ commands / specification _ command (1) -
rubygems
/ dependency _ list (3) -
rubygems
/ exceptions (1) -
rubygems
/ gem _ path _ searcher (2) -
rubygems
/ indexer (2) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ input (2) -
rubygems
/ security (1) -
rubygems
/ source _ index (8) -
rubygems
/ specification (45) -
webrick
/ httpauth / authenticator (7) -
webrick
/ httpauth / digestauth (1) -
webrick
/ httpstatus (2)
クラス
-
ARGF
. class (1) - Array (8)
- BigDecimal (2)
- Binding (1)
- Encoding (1)
- Exception (1)
- Float (1)
-
Gem
:: DependencyList (3) -
Gem
:: GemPathSearcher (2) -
Gem
:: Indexer (2) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarInput (2) -
Gem
:: SourceIndex (8) -
Gem
:: Specification (45) - IO (14)
- Integer (1)
- Method (1)
- Module (2)
-
Net
:: IMAP (2) - Object (1)
-
OpenSSL
:: OCSP :: BasicResponse (1) -
OpenSSL
:: OCSP :: CertificateId (4) -
OpenSSL
:: OCSP :: Request (1) -
OpenSSL
:: PKCS7 (1) -
OpenSSL
:: X509 :: Certificate (3) -
RDoc
:: Context (1) -
RDoc
:: Options (1) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (2) -
RSS
:: Maker :: ItemsBase :: ItemBase (1) -
RSS
:: Rss :: Channel :: Item :: Category (2) -
Rake
:: Application (4) -
Rake
:: InvocationChain (2) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) - Thread (3)
-
Thread
:: Backtrace :: Location (7) - UnboundMethod (1)
-
WEBrick
:: HTTPAuth :: DigestAuth (1)
モジュール
-
CGI
:: HtmlExtension (2) - Enumerable (6)
-
Gem
:: Security (1) - Kernel (2)
- Open3 (2)
-
OpenSSL
:: OCSP (1) -
RSS
:: SyndicationModel (6) -
WEBrick
:: HTTPAuth :: Authenticator (4) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (3) -
WEBrick
:: HTTPStatus (1)
キーワード
- CertificateId (1)
-
DEFAULT
_ RAKEFILES (1) - DEPRECATED (1)
- HTTPNetworkAuthenticationRequired (1)
- HTTPProxyAuthenticationRequired (1)
- InfoField (1)
- InvalidSpecificationException (1)
- Location (1)
-
MARSHAL
_ FIELDS (1) -
NEWS for Ruby 2
. 2 . 0 (1) - ProxyAuthenticationRequired (1)
-
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (1) -
REVOKED
_ STATUS _ CERTIFICATEHOLD (1) - RequestField (2)
- ResponseField (2)
- ResponseInfoField (1)
- Rubyの起動 (1)
- SpecificationCommand (1)
- SyndicationModel (1)
- TODAY (1)
-
_ dump (1) -
_ load (1) - abbreviate (1)
-
absolute
_ path (1) -
add
_ authenticator (1) -
add
_ bindir (1) -
add
_ certificate (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ extension (1) -
add
_ loader (1) -
add
_ runtime _ dependency (1) -
add
_ spec (1) - any? (6)
- append (3)
-
arg
_ concat (1) -
assign
_ defaults (1) -
attribute
_ defaults (1) - authenticate (2)
-
backtrace
_ locations (3) -
base
_ label (1) - bindir (1)
- bindir= (1)
-
build
_ cert (1) -
caller
_ locations (2) -
catch
_ i (1) -
catch
_ timer (1) - certid (1)
- cmp (1)
-
cmp
_ issuer (1) - concat (2)
-
const
_ source _ location (1) - date (1)
- date= (1)
- debug (1)
-
default
_ executable (1) -
default
_ executable= (1) -
default
_ value (1) - dependencies (1)
-
dependency
_ order (1) -
dependent
_ gems (1) -
deprecate
_ constant (1) - description (1)
- description= (1)
-
development
_ dependencies (1) - domain (2)
- domain= (2)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - find (1)
-
find
_ all (1) -
find
_ name (2) - form (2)
-
from
_ installed _ gems (1) - guid (1)
-
has
_ rdoc (1) -
has
_ rdoc= (1) -
has
_ rdoc? (1) -
inplace
_ mode (1) - inspect (1)
-
instance
_ variable _ defined? (1) - label (1)
- lineno (1)
-
list
_ concat (1) -
literal
_ concat (1) -
literal
_ concat _ dstr (1) -
literal
_ concat _ list (1) -
literal
_ concat _ string (1) - load (1)
-
load
_ gemspec (1) -
load
_ rakefile (1) -
load
_ specification (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) -
mark
_ locations _ array (1) - new (2)
- none? (6)
-
original
_ dir (1) - path (1)
-
pipeline
_ rw (2) - popen (14)
-
rb
_ catch (1) -
rb
_ f _ catch (1) -
rb
_ gc _ mark _ locations (1) - rdoc (1)
-
rdoc
/ markdown (1) -
read
_ only (1) -
record
_ location (1) -
remove
_ by _ name (1) -
remove
_ spec (1) - replicate (1)
-
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) -
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) -
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 3 feature (1) -
rubygems
/ commands / specification _ command (1) -
runtime
_ dependencies (1) - sanitize (1)
-
satisfies
_ requirement? (1) - search (1)
- serial (1)
- sign (1)
-
source
_ location (3) - spec (1)
- specification (1)
- status (1)
-
sy
_ updateBase (1) -
sy
_ updateBase= (1) -
sy
_ updateFrequency (1) -
sy
_ updateFrequency= (1) -
sy
_ updatePeriod (1) -
sy
_ updatePeriod= (1) -
thread
_ variable _ set (1) -
to
_ der (1) -
to
_ s (1) - truncate (4)
- userdb (1)
- validate (1)
- 制御構造 (1)
- 正規表現 (1)
検索結果
先頭5件
-
debug (78019.0)
-
Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。
Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。
また、Emacs を使用したインタフェース rubydb3x.el が
https://github.com/ruby/elisp にあるので、活用してください。
=== 使い方
$ ruby -rdebug foo.rb
または、Emacs から
M-x load-library rubydb3x.el
M-x rubydb
=== デバッグコマンド
以下は、デバッガで使用できるコマンド名とその用法の一覧です。
各コマンド名には省略形があります。
ここに挙げたもの以外を入力し... -
Gem
:: DependencyList # dependency _ order -> [Gem :: Specification] (73201.0) -
依存する Gem の数が少ない順にソートされた Gem::Specification のリストを返します。
依存する Gem の数が少ない順にソートされた Gem::Specification のリストを返します。
このことは、インストール済みの Gem を削除するときに便利です。
このメソッドで返された順にインストール済みの Gem 削除すると、
依存関係による多くの問題を回避することができます。
If there are circular dependencies (yuck!), then gems will be
returned in order until only the circular dependents and anything
they reference are le... -
Gem
:: Specification # development _ dependencies -> Array (63901.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: Specification # dependencies -> Array (45601.0) -
依存している Gem のリストを返します。
依存している Gem のリストを返します。
@see Gem::Dependency -
Gem
:: Specification # dependent _ gems -> Array (45601.0) -
この Gem に依存している全ての Gem の情報のリストを返します。
この Gem に依存している全ての Gem の情報のリストを返します。
それぞれのエントリは配列になっており、各要素は以下のようになっています。
(0) Gem::Specification
(1) Gem::Dependency
(2) Gem::Specification の配列 -
Gem
:: Specification # runtime _ dependencies -> Array (45601.0) -
この Gem パッケージが依存している Gem パッケージのリストを返します。
この Gem パッケージが依存している Gem パッケージのリストを返します。 -
static NODE * literal
_ concat _ dstr(NODE *head , NODE *tail) (37201.0) -
-
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (36901.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Net
:: IMAP . add _ authenticator(auth _ type , authenticator) -> () (36901.0) -
Net::IMAP#authenticate で使う 認証用クラスを設定します。
Net::IMAP#authenticate で使う
認証用クラスを設定します。
imap ライブラリに新たな認証方式を追加するために用います。
通常は使う必要はないでしょう。もしこれを用いて
認証方式を追加する場合は net/imap.rb の
Net::IMAP::LoginAuthenticator などを参考にしてください。
@param auth_type 認証の種類(文字列)
@param authenticator 認証クラス(Class オブジェクト) -
Module
# deprecate _ constant(*name) -> self (36619.0) -
name で指定した定数を deprecate に設定します。 deprecate に設定した定数を参照すると警告メッセージが表示されます。
name で指定した定数を deprecate に設定します。
deprecate に設定した定数を参照すると警告メッセージが表示されます。
Ruby 2.7.2 から Warning[:deprecated] のデフォルト値が false に変更になったため、
デフォルトでは警告が表示されません。
コマンドラインオプション(詳細はd:spec/rubycmd#cmd_option参照)で、
「-w」か「-W2」などを指定するか、実行中に「Warning[:deprecated] = true」で
変更すると表示されるようになります。
「$VERBOSE = true」は「Warnin... -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ CERTIFICATEHOLD -> Integer (36601.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 一時的な保留を意味します。
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
一時的な保留を意味します。
詳しくは 3280 や X.509 を参照してください。 -
OpenSSL
:: PKCS7 # add _ certificate(cert) -> self (36601.0) -
署名に添付する証明書を追加します。
署名に添付する証明書を追加します。
通常は OpenSSL::PKCS7.sign の引数で添付する証明書を指定した
ほうがよいでしょう。
@param cert 追加する証明書(OpenSSL::X509::Certificate オブジェクト)
@raise OpenSSL::PKCS7::PKCS7Error 追加に失敗した場合に発生します。 -
RDoc
:: Context # record _ location(toplevel) (36601.0) -
Record the file that we happen to find it in
Record the file that we happen to find it in -
RDoc
:: Options :: DEPRECATED -> {String -> String} (36601.0) -
非推奨のオプションの一覧を返します。
非推奨のオプションの一覧を返します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (36601.0) -
与えられた値を追加した Rake::InvocationChain を返します。
与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。 -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # domain (36301.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # domain=() (36301.0) -
@todo
@todo -
rdoc
/ markdown (36037.0) -
Markdown 形式で記述されたドキュメントを rdoc 上で解析するための サブライブラリです。
Markdown 形式で記述されたドキュメントを rdoc 上で解析するための
サブライブラリです。
詳しくは以下を参照してください。
* https://daringfireball.net/projects/markdown/syntax
Markdown 形式をデフォルトのフォーマットにする場合は、
lib:rdoc#saved_options を参考に プロジェクトのデフォルトを
.rdoc_options ファイルで設定してください。
=== 拡張
以降の Markdown の拡張は RDoc のパーサ独自にサポートされているも
のです。ただし、全てがデフォルトで有効にな... -
Gem
:: Commands :: SpecificationCommand (36001.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。 -
Gem
:: InvalidSpecificationException (36001.0) -
不正な gemspec に関する例外です。
不正な gemspec に関する例外です。 -
Net
:: HTTPNetworkAuthenticationRequired (36001.0) -
HTTP レスポンス 511 (Network Authentication Required) を表現するクラスです。
HTTP レスポンス 511 (Network Authentication Required) を表現するクラスです。
詳しくは 6585 を見てください。 -
Net
:: HTTPProxyAuthenticationRequired (36001.0) -
HTTP レスポンス 407 (Proxy Authentication Required) を表現するクラスです。
...HTTP レスポンス 407 (Proxy Authentication Required) を表現するクラスです。
詳しくは 7235 Section 3.2 を見てください。... -
OpenSSL
:: OCSP :: CertificateId (36001.0) -
失効状態を問い合わせたい個々の証明書を識別するためのクラスです。
失効状態を問い合わせたい個々の証明書を識別するためのクラスです。
問い合わせたい証明書にissuerの情報+αを付加したオブジェクトです。
CertificateId オブジェクトを複数 OpenSSL::OCSP::Request に含め、
同時に問い合わせることができます。 -
RSS
:: SyndicationModel (36001.0) -
-
WEBrick
:: HTTPStatus :: ProxyAuthenticationRequired (36001.0) -
HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。
HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。 -
rubygems
/ commands / specification _ command (36001.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify the platform of gem to specification
--all ... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (27901.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (27901.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]... -
BigDecimal
# truncate(n) -> BigDecimal (27601.0) -
小数点以下の数を切り捨てて整数にします。
小数点以下の数を切り捨てて整数にします。
@param n 小数点以下の桁数を整数で指定します。
以下のように引数を与えて、小数点以下 n+1 位の数字を操作することもできます。
n が正の時は、小数点以下 n+1 位の数字を切り捨てます
(小数点以下を、最大 n 桁にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").truncate(4).to_f # => 1.2345
BigDec... -
Encoding
# replicate(name) -> Encoding (27601.0) -
レシーバのエンコーディングを複製(replicate)します。 複製されたエンコーディングは元のエンコーディングと同じバイト構造を持たなければなりません。 name という名前のエンコーディングが既に存在する場合は ArgumentError を発生します。
...ければなりません。
name という名前のエンコーディングが既に存在する場合は ArgumentError を発生します。
Ruby 3.2 から非推奨となり、Ruby 3.3 で削除予定です。
//emlist[][ruby]{
encoding = Encoding::UTF_8.replicate("REPLICATED_UTF-8") #=> #<E... -
Gem
:: DependencyList # find _ name(full _ name) -> Gem :: Specification | nil (27601.0) -
自身に含まれる与えられた名前を持つ Gem::Specification のインスタンスを返します。
自身に含まれる与えられた名前を持つ Gem::Specification のインスタンスを返します。
見つからなかった場合は nil を返します。
@param full_name バージョンを含むフルネームで Gem の名前を指定します。
@see Gem::Specification#full_name -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (27601.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Gem
:: Specification # bindir=(dir) (27601.0) -
実行ファイルを格納するディレクトリをセットします。
実行ファイルを格納するディレクトリをセットします。
@param dir 実行ファイルを格納するディレクトリを指定します。デフォルトは "bin" です。 -
Gem
:: Specification # date=(date) (27601.0) -
@param date 日付をセットします。デフォルトは今日です。
@param date 日付をセットします。デフォルトは今日です。 -
Gem
:: Specification # description=(desc) (27601.0) -
Gem パッケージの説明をセットします。
Gem パッケージの説明をセットします。
@param desc パッケージの詳細を説明する文章を指定します。 -
Gem
:: Specification . _ load(str) -> Gem :: Specification (27601.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Gem
:: Specification . load(filename) -> Gem :: Specification (27601.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (27601.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指定した場合 対象にはなりません。
@return ソースコードのファイル名と行番号を配列で返します。
指定した定数が見つからない場合は nil を返します。
定数は見つかったがソースファイルが見つからなかった場合は空の配列を返します。
... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (27601.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain:... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (27601.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
@param task_name タスク名を指定します。
@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append... -
WEBrick
:: HTTPAuth :: ProxyAuthenticator :: InfoField -> "Proxy-Authentication-Info" (27601.0) -
キーの名前です。
キーの名前です。 -
WEBrick
:: HTTPAuth :: ProxyAuthenticator :: ResponseField -> "Proxy-Authenticate" (27601.0) -
レスポンスフィールドのキーの名前です。
レスポンスフィールドのキーの名前です。 -
WEBrick
:: HTTPStatus :: RC _ PROXY _ AUTHENTICATION _ REQUIRED (27601.0) -
HTTP のステータスコードを表す整数です。
HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500 -
Binding
# source _ location -> [String , Integer] (27319.0) -
self の Ruby のソースファイル名と行番号を返します。
self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//} -
BigDecimal
# truncate -> Integer (27301.0) -
小数点以下の数を切り捨てて整数にします。
小数点以下の数を切り捨てて整数にします。
@param n 小数点以下の桁数を整数で指定します。
以下のように引数を与えて、小数点以下 n+1 位の数字を操作することもできます。
n が正の時は、小数点以下 n+1 位の数字を切り捨てます
(小数点以下を、最大 n 桁にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").truncate(4).to_f # => 1.2345
BigDec... -
Gem
:: Specification # _ dump -> String (27301.0) -
重要なインスタンス変数のみを Marshal.#dump します。
重要なインスタンス変数のみを Marshal.#dump します。
@see Marshal.#dump -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (27301.0) -
実行コマンドの格納場所を返します。
実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。 -
Gem
:: Specification # add _ dependency(gem , *requirements) -> [Gem :: Dependency] (27301.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0... -
Gem
:: Specification # add _ development _ dependency(gem , *requirements) -> [Gem :: Dependency] (27301.0) -
この gem の DEVELOPMENT 依存性を追加します。 この gem の開発時に必要となる gem を指定します。
この gem の DEVELOPMENT 依存性を追加します。
この gem の開発時に必要となる gem を指定します。
//emlist[][ruby]{
gem "rack", "~> 1.6", ">= 1.6.12"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0 個以上指定します。デフォルトは ">= 0" です。
@see Gem::Specification#add_runtime_dependency, Gem::Depende... -
Gem
:: Specification # add _ runtime _ dependency(gem , *requirements) -> [Gem :: Dependency] (27301.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0... -
Gem
:: Specification # assign _ defaults -> () (27301.0) -
全ての属性にデフォルト値をセットします。
全ての属性にデフォルト値をセットします。
これはアクセサメソッドを使用して行われるので、ブロックを用いた特別な初期化も
きちんと実行されます。セットされる値はデフォルト値のコピーです。 -
Gem
:: Specification # bindir -> String (27301.0) -
実行ファイルを格納するディレクトリを返します。
実行ファイルを格納するディレクトリを返します。 -
Gem
:: Specification # date -> Time (27301.0) -
日付を返します。
日付を返します。 -
Gem
:: Specification # default _ executable -> String | nil (27301.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # default _ executable=(executable) (27301.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。 -
Gem
:: Specification # description -> String (27301.0) -
Gem パッケージの説明を返します。
Gem パッケージの説明を返します。 -
Gem
:: Specification # extra _ rdoc _ files -> [String] (27301.0) -
RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。
RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。 -
Gem
:: Specification # extra _ rdoc _ files=(paths) (27301.0) -
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
@param paths RDoc でドキュメントを作成する際に使用する特別なファイルのリストを指定します。 -
Gem
:: Specification # has _ rdoc -> bool (27301.0) -
真の場合は RDoc を生成しせん。偽の場合は RDoc を生成します。
真の場合は RDoc を生成しせん。偽の場合は RDoc を生成します。 -
Gem
:: Specification # has _ rdoc=(flag) (27301.0) -
RDoc を生成するかどうかをセットします。デフォルトは偽です。
RDoc を生成するかどうかをセットします。デフォルトは偽です。 -
Gem
:: Specification # has _ rdoc? -> bool (27301.0) -
真の場合は RDoc を生成しせん。偽の場合は RDoc を生成します。
真の場合は RDoc を生成しせん。偽の場合は RDoc を生成します。
@see Gem::Specification#has_rdoc -
Gem
:: Specification # loaded=(flag) (27301.0) -
この Gem パッケージの gemspec が既にロードされているかどうかをセットします。
この Gem パッケージの gemspec が既にロードされているかどうかをセットします。
この属性は永続化しません。
@param flag 既にロードされている場合は真を指定します。 -
Gem
:: Specification # loaded? -> bool (27301.0) -
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
この Gem パッケージの gemspec が既にロードされているかどうかを返します。
既にロードされている場合は真を返します。そうでない場合は偽を返します。 -
Gem
:: Specification # loaded _ from -> String (27301.0) -
この Gem パッケージの gemspec がある場所を返します。
この Gem パッケージの gemspec がある場所を返します。
この属性は永続化されません。 -
Gem
:: Specification # loaded _ from=(path) (27301.0) -
この Gem パッケージの gemspec がある場所をセットします。
この Gem パッケージの gemspec がある場所をセットします。
@param path この Gem パッケージの gemspec がある場所を指定します。 -
Gem
:: Specification # rdoc _ options -> [String] (27301.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションを返します。 -
Gem
:: Specification # rdoc _ options=(options) (27301.0) -
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
API ドキュメントを生成するときに rdoc コマンドに与えるオプションをセットします。
@param options API ドキュメントを生成するときに rdoc コマンドに与えるオプションを指定します。 -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (27301.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。 -
Gem
:: Specification # required _ ruby _ version=(requirement) (27301.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (27301.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。 -
Gem
:: Specification # required _ rubygems _ version=(requirement) (27301.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement -
Gem
:: Specification # validate -> bool (27301.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Gem
:: Specification . attribute _ defaults -> Array (27301.0) -
@todo
@todo
@@attributes の複製を返します。 -
Gem
:: Specification . default _ value(name) -> object (27301.0) -
与えられた名前の属性のデフォルト値を返します。
与えられた名前の属性のデフォルト値を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . read _ only(*names) -> () (27301.0) -
与えられた属性名を読み取り専用にします。
与えられた属性名を読み取り専用にします。
@param names 属性名を一つ以上指定します。 -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (27301.0) -
必須の属性を作成します。
必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . required _ attribute?(name) -> bool (27301.0) -
必須属性であれば真を返します。
必須属性であれば真を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attributes -> Array (27301.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
Gem
:: Specification :: MARSHAL _ FIELDS -> Hash (27301.0) -
@todo
@todo -
Gem
:: Specification :: TODAY -> Time (27301.0) -
本日の日付を返します。
本日の日付を返します。 -
Method
# source _ location -> [String , Integer] | nil (27301.0) -
ソースコードのファイル名と行番号を配列で返します。
ソースコードのファイル名と行番号を配列で返します。
その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source... -
OpenSSL
:: X509 :: Certificate # add _ extension(ext) -> OpenSSL :: X509 :: Extension (27301.0) -
拡張領域に拡張を追加します。
拡張領域に拡張を追加します。
@return 追加した拡張を返します
@param ext 追加する拡張(OpenSSL::X509::Extension オブジェクト)
@raise OpenSSL::X509::CertificateError 設定に失敗した場合に発生します -
OpenSSL
:: X509 :: Certificate # to _ der -> String (27301.0) -
DER 形式のバイト列を返します。
DER 形式のバイト列を返します。 -
RSS
:: Rss :: Channel :: Item :: Category # domain (27301.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Category # domain= (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateBase (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateBase= (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateFrequency (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateFrequency= (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updatePeriod (27301.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updatePeriod= (27301.0) -
@todo
@todo -
Rake
:: Application # add _ loader(ext , loader) (27301.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)... -
Rake
:: Application # load _ rakefile (27301.0) -
Rakefile を探してロードします。
Rakefile を探してロードします。 -
Rake
:: Application # original _ dir -> String (27301.0) -
rake コマンドを実行したディレクトリを返します。
rake コマンドを実行したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//} -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (27301.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。 -
UnboundMethod
# source _ location -> [String , Integer] | nil (27301.0) -
ソースコードのファイル名と行番号を配列で返します。
ソースコードのファイル名と行番号を配列で返します。
その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
/... -
WEBrick
:: HTTPAuth :: Authenticator # userdb -> WEBrick :: HTTPAuth :: Htpasswd | WEBrick :: HTTPAuth :: Htdigest (27301.0) -
認証のためのユーザデータベースを返します。
認証のためのユーザデータベースを返します。
@see WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::Htdigest -
WEBrick
:: HTTPAuth :: Authenticator :: RequestField -> String (27301.0) -
リクエストフィールドのキーの名前です。
リクエストフィールドのキーの名前です。 -
WEBrick
:: HTTPAuth :: Authenticator :: ResponseField -> String (27301.0) -
レスポンスフィールドのキーの名前です。
レスポンスフィールドのキーの名前です。 -
WEBrick
:: HTTPAuth :: Authenticator :: ResponseInfoField -> String (27301.0) -
レスポンスインフォフィールドのキーの名前です。
レスポンスインフォフィールドのキーの名前です。