種類
ライブラリ
- ビルトイン (78)
- bigdecimal (1)
- csv (1)
- find (1)
- ipaddr (1)
-
irb
/ context (2) -
irb
/ inspector (3) -
irb
/ magic-file (1) - openssl (2)
- psych (2)
- rake (3)
-
rdoc
/ markup (1) -
rexml
/ document (2) -
rubygems
/ builder (1) -
rubygems
/ commands / build _ command (1) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (5) -
rubygems
/ exceptions (1) -
rubygems
/ gem _ path _ searcher (5) -
rubygems
/ indexer (1) -
rubygems
/ installer (4) -
rubygems
/ old _ format (2) -
rubygems
/ package / tar _ input (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ require _ paths _ builder (1) -
rubygems
/ requirement (1) -
rubygems
/ server (1) -
rubygems
/ source _ index (8) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ spec _ fetcher (7) -
rubygems
/ specification (62) -
rubygems
/ uninstaller (7) -
rubygems
/ validator (1) - scanf (3)
-
shell
/ command-processor (1) -
shell
/ filter (1) - socket (4)
- uri (1)
-
webrick
/ httputils (1) - win32ole (1)
- zlib (1)
クラス
-
ARGF
. class (4) - Addrinfo (2)
- BasicObject (3)
- BigDecimal (1)
-
CSV
:: Table (1) - Complex (1)
- Encoding (6)
- FalseClass (2)
- Float (2)
-
Gem
:: Builder (1) -
Gem
:: Commands :: BuildCommand (1) -
Gem
:: Commands :: DependencyCommand (1) -
Gem
:: Commands :: LockCommand (1) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (5) -
Gem
:: GemPathSearcher (5) -
Gem
:: Indexer (1) -
Gem
:: Installer (4) -
Gem
:: OldFormat (2) -
Gem
:: Package :: TarInput (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: Requirement (1) -
Gem
:: Server (1) -
Gem
:: SourceIndex (8) -
Gem
:: SourceInfoCache (1) -
Gem
:: SpecFetcher (7) -
Gem
:: Specification (62) -
Gem
:: Uninstaller (7) -
Gem
:: Validator (1) - IPAddr (1)
-
IRB
:: Context (2) -
IRB
:: Inspector (2) - Method (2)
- Module (8)
- Object (5)
-
OpenSSL
:: HMAC (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (1) -
REXML
:: CData (1) -
REXML
:: Text (1) -
Rake
:: FileList (2) - Range (3)
- Rational (1)
-
Scanf
:: FormatSpecifier (1) -
Scanf
:: FormatString (2) -
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1) -
Socket
:: AncillaryData (2) - String (1)
- Symbol (2)
- Thread (1)
-
Thread
:: Backtrace :: Location (1) - TrueClass (1)
-
WIN32OLE
_ TYPE (1) -
Zlib
:: GzipFile :: Error (1)
モジュール
- Find (1)
-
Gem
:: RequirePathsBuilder (1) - IRB (1)
- Kernel (32)
- ObjectSpace (2)
-
OpenSSL
:: OCSP (1) - Signal (2)
- URI (1)
-
WEBrick
:: HTTPUtils (1)
オブジェクト
-
IRB
:: MagicFile (1)
キーワード
-
$ -0 (1) -
$ -F (1) -
$ -I (1) -
$ -K (1) -
$ -W (1) -
$ -a (1) -
$ -d (1) -
$ -i (1) -
$ -l (1) -
$ -p (1) -
$ -v (1) -
$ -w (1) -
$ / (1) -
$ : (1) -
$ ; (1) -
$ > (1) -
$ DEBUG (1) -
$ KCODE (1) -
$ LOAD _ PATH (1) -
$ SAFE (1) -
$ VERBOSE (1) -
$ stdout (1) - === (3)
- Alias (1)
- DATA (1)
-
ENCODING
_ SPEC _ RE (1) - Inspector (1)
- InvalidSpecificationException (1)
-
MARSHAL
_ FIELDS (1) -
REVOKED
_ STATUS _ UNSPECIFIED (1) - Ruby プログラムの実行 (1)
- Rubyの起動 (1)
- Ruby用語集 (1)
- SPECIAL (1)
-
SPECIAL
_ CONST _ P (1) -
SPECIAL
_ RETURN (1) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (1) - Scalar (1)
-
Stateless
_ ISO _ 2022 _ JP _ KDDI (1) -
_ load (1) - ` (1)
- add (1)
-
add
_ bindir (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ runtime _ dependency (1) -
add
_ special (1) -
alias
_ method (1) -
ask
_ if _ ok (1) -
assign
_ defaults (1) -
at
_ exit (1) -
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) - autorequire= (1)
- call (2)
-
collect
_ specs (1) -
def
_ builtin _ commands (1) -
def
_ inspector (1) -
default
_ executable (1) -
default
_ executable= (1) -
default
_ external (1) -
default
_ external= (1) -
default
_ internal (1) -
default
_ internal= (1) -
default
_ value (1) -
define
_ finalizer (2) -
dependencies
_ ok? (1) -
dependency
_ order (1) -
development
_ dependencies (1) - download (1)
- email (1)
- email= (1)
-
encode
_ www _ form (1) -
ensure
_ dependency (1) - executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- exit (1)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - fetch (1)
-
file
_ name (1) - files (1)
- files= (1)
- find (2)
-
find
_ all (1) -
find
_ matching (1) -
find
_ name (2) -
find
_ spec _ by _ name _ and _ version (1) -
from
_ yaml (1) -
full
_ gem _ path (1) -
full
_ name (1) -
has
_ rdoc (1) -
has
_ rdoc= (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (1) - include? (1)
-
inplace
_ mode (1) -
inplace
_ mode= (1) - inspect (15)
- inspect? (1)
-
inspect
_ i (1) -
inspect
_ mode (1) -
inspect
_ obj (1) -
inspect
_ value (1) - install (1)
-
installation
_ path (1) -
installed
_ spec _ directories (1) -
instance
_ eval (2) -
ip
_ pktinfo (2) -
ipv6
_ unspecified? (1) - lambda (2)
-
last
_ spec (1) -
last
_ spec _ tried (1) -
latest
_ specs (3) -
legacy
_ repos (1) - letter (1)
-
lib
_ dirs _ for (1) -
lib
_ files (1) - list (2)
- load (1)
-
load
_ gems _ in (1) -
load
_ gemspec (1) -
load
_ gemspecs (1) -
load
_ specification (1) -
load
_ specs (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) -
matching
_ file? (1) -
matching
_ files (1) - member? (1)
-
method
_ inspect (1) - name (1)
- new (5)
- normalize (1)
-
normalize
_ yaml _ input (1) -
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) -
parse
_ range _ header (1) -
path
_ ok? (1) - pathmap (2)
- platform (1)
- platform= (1)
-
print
_ dependencies (1) - private (1)
- proc (2)
- protected (1)
- public (1)
-
rb
_ inspect (1) -
rb
_ obj _ inspect (1) -
rb
_ thread _ inspect (1) -
read
_ only (1) - remove (1)
-
remove
_ by _ name (1) -
remove
_ executables (1) -
remove
_ spec (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / specification _ command (1) -
safe
_ level (1) -
satisfies
_ requirement? (1) - search (2)
-
singleton
_ method _ undefined (1) - spec= (1)
-
spec
_ path (1) -
spec
_ predecessors (1) -
special
_ local _ set (1) - specific? (1)
-
specific
_ eval (1) - specification (1)
- taint (1)
- tainted? (1)
-
test
_ file (1) -
test
_ file= (1) -
test
_ files (1) -
test
_ files= (1) -
test
_ suite _ file (1) -
test
_ suite _ file= (1) -
to
_ proc (1) -
to
_ s (4) -
trace
_ var (3) - trap (2)
-
uninstall
_ gem (1) -
unit
_ test (1) - untaint (1)
- validate (1)
-
warn
_ legacy (1) -
write
_ require _ paths _ file _ if _ needed (1) -
write
_ spec (1) - xmlrpc (1)
- yaml (1)
-
yaml
_ initialize (1) - クラス (1)
- セキュリティモデル (1)
- メソッド呼び出し(super・ブロック付き・yield) (1)
- リテラル (1)
- 制御構造 (1)
- 変数と定数 (1)
- 字句構造 (1)
- 手続きオブジェクトの挙動の詳細 (1)
- 正規表現 (1)
検索結果
先頭5件
-
Gem
:: Installer # spec -> Gem :: Specification (63604.0) -
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。 -
Gem
:: OldFormat # spec -> Gem :: Specification (63604.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Gem
:: Uninstaller # spec -> Gem :: Specification (63604.0) -
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。 -
static void special
_ local _ set(char c , VALUE val) (54901.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
Gem
:: SpecFetcher # latest _ specs -> Hash (45601.0) -
キャッシュされている最新の gemspec を返します。
キャッシュされている最新の gemspec を返します。 -
Gem
:: SpecFetcher # load _ specs(source _ uri , file) -> object (45601.0) -
指定された source_uri, file から gemspec をロードします。
指定された source_uri, file から gemspec をロードします。
また、内部ではキャッシュの更新も行っています。
@param source_uri gemspec の置いてある URI を指定します。
@param file gemspec のファイル名を指定します。 -
IRB
:: Inspector # inspect _ value(v) -> () (45601.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (37501.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。 -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (36901.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
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 をロードしているときに発生します。 -
Gem
:: SourceIndex . installed _ spec _ directories -> [String] (36604.0) -
gemspec ファイルがインストールされているディレクトリのリストを返します。
gemspec ファイルがインストールされているディレクトリのリストを返します。
@see Gem.#path -
Scanf
:: FormatString # last _ spec (36604.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (36604.0) -
@todo
@todo -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (36601.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Indexer # collect _ specs -> Gem :: SourceIndex (36601.0) -
Gem のキャッシュディレクトリ内の *.gem ファイルから Gem::Specification を集めます。
Gem のキャッシュディレクトリ内の *.gem ファイルから Gem::Specification を集めます。 -
Gem
:: Server # latest _ specs(request , response) -> () (36601.0) -
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
@param request WEBrick::HTTPRequest オブジェクトが自動的に指定されます。
@param response WEBrick::HTTPResponse オブジェクトが自動的に指定されます。 -
Gem
:: SourceIndex # latest _ specs -> Array (36601.0) -
自身に含まれる最新の Gem::Specification のリストを返します。
自身に含まれる最新の Gem::Specification のリストを返します。 -
RDoc
:: Markup # add _ special(pattern , name) -> () (36601.0) -
pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま す。
pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま
す。
例えば WikiWord のような、SM::SimpleMarkup#add_word_pair、
SM::SimpleMarkup#add_html でフォーマットできないものに対して使用
します。
@param pattern 正規表現を指定します。
@param name SM::ToHtml などのフォーマッタに識別させる時の名前を
Symbol で指定します。
例:
require 'rdoc/markup/simple_markup'
require '... -
RDoc
:: Options :: SPECIAL -> [String] (36601.0) -
--write-options を指定した際に .rdoc_options ファイルに保存されないオプ ションの一覧を返します。
--write-options を指定した際に .rdoc_options ファイルに保存されないオプ
ションの一覧を返します。 -
Rake
:: FileList :: SPECIAL _ RETURN -> Array (36601.0) -
Array のインスタンスを返すので委譲した後にラップする必要があるメソッドのリストです。
Array のインスタンスを返すので委譲した後にラップする必要があるメソッドのリストです。 -
int SPECIAL
_ CONST _ P(VALUE obj) (36601.0) -
obj が実体の構造体を持たないとき真。 現時点で真になるのは Qnil, Qtrue, Qfalse と、 Fixnum, Symbol のインスタンス。
obj が実体の構造体を持たないとき真。
現時点で真になるのは Qnil, Qtrue, Qfalse と、
Fixnum, Symbol のインスタンス。 -
Gem
:: InvalidSpecificationException (36001.0) -
不正な gemspec に関する例外です。
不正な gemspec に関する例外です。 -
Gem
:: Uninstaller # uninstall _ gem(spec , specs) (27970.0) -
与えられた spec に対応する Gem をアンインストールします。
与えられた spec に対応する Gem をアンインストールします。
@param spec アンインストール指定されている Gem の Gem::Specification を指定します。
@param specs アンインストールする Gem のリストを指定します。
このパラメータは破壊的に変更されます。 -
Gem
:: OldFormat # spec=(spec) (27625.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (27604.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
Gem
:: DependencyInstaller # find _ spec _ by _ name _ and _ version(gem _ name , version = Gem :: Requirement . default) -> Array (27604.0) -
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と それの存在する URI を含む配列を返します。
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と
それの存在する URI を含む配列を返します。
@param gem_name Gem の名前を指定します。
@param version Gem が満たすバージョンに関する条件を指定します。 -
IRB
:: MagicFile . ENCODING _ SPEC _ RE -> %r"coding\s*[=:]\s*([[:alnum:]\- _ ]+)" (27604.0) -
マジックコメントにマッチする正規表現を返します。
マジックコメントにマッチする正規表現を返します。 -
Gem
:: Installer # install -> Gem :: Specification (27601.0) -
Gem をインストールします。
Gem をインストールします。
以下のディレクトリ構造で Gem をインストールします。
@gem_home/
cache/<gem-version>.gem #=> インストールした Gem のコピー
gems/<gem-version>/... #=> インストール時に展開したファイル
specifications/<gem-version>.gemspec #=> gemspec ファイル
@return ロードされた Gem::Specification のインスタンスを返します。
@r... -
Gem
:: Specification # executable=(executable) (27601.0) -
実行可能ファイル名をセットします。
実行可能ファイル名をセットします。
@param executable 実行可能ファイル名を指定します。 -
Gem
:: Specification # executables=(executables) (27601.0) -
実行可能ファイル名のリストをセットします。
実行可能ファイル名のリストをセットします。
@param executables 実行可能ファイル名のリストを指定します。 -
Gem
:: Specification # files=(files) (27601.0) -
この Gem パッケージに含まれるファイル名の配列をセットします。
この Gem パッケージに含まれるファイル名の配列をセットします。
@param files この Gem パッケージに含まれるファイル名の配列を指定します。 -
Gem
:: Specification # platform=(platform) (27601.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Specification # test _ file=(file) (27601.0) -
Gem::Specification#test_files= の単数バージョンです。
Gem::Specification#test_files= の単数バージョンです。 -
Gem
:: Specification # test _ files=(files) (27601.0) -
ユニットテストのファイルのリストをセットします。
ユニットテストのファイルのリストをセットします。
@param files ユニットテストのファイルのリストを指定します。 -
Gem
:: Specification # test _ suite _ file=(file) (27601.0) -
この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
@param file テストスイートのファイルを指定します。 -
Gem
:: Specification . _ load(str) -> Gem :: Specification (27601.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (27601.0) -
YAML ファイルから gemspec をロードします。
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec のバージョンチェックも行います。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: Specification . load(filename) -> Gem :: Specification (27601.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (27601.0) -
新しい実行結果の出力方式を定義します。
新しい実行結果の出力方式を定義します。
@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。
@param arg ブロックを指定する場合には、inspect_mode の初期化のための手続
きオブジェクトを指定します。あらかじめ require が必要な場合
などに、proc { require "foo" } といった指定を行います。
... -
Gem
:: DependencyList # spec _ predecessors -> Hash (27340.0) -
@todo ???
@todo ???
Return a hash of predecessors. <tt>result[spec]</tt> is an
Array of gemspecs that have a dependency satisfied by the named
spec. -
ARGF
. class # inplace _ mode -> String | nil (27319.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡
張子を返します。拡張子が設定されていない場合は空文字列を返します。イン
プレースモードでない場合は nil を返します。
Ruby 起動時の -i オプション や ARGF.class#inplace_mode= で設定します。
例:
# $ echo "test" > test.txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"
# test... -
ARGF
. class # inplace _ mode=(ext) (27319.0) -
c:ARGF#inplace時にバックアップファイルに付加する拡張子を設定します。 ピリオドも含めて指定する必要があります。
c:ARGF#inplace時にバックアップファイルに付加する拡張子を設定します。
ピリオドも含めて指定する必要があります。
バックアップを残さない場合は空文字列を指定します。
この機能は Windows では使用出来ません。
設定が有効になるのは次のファイルの処理に移った時です。
インプレースモードに入っていない場合はその時点でモードに入ります。
Ruby 起動時の -i オプションで設定することも出来ます。
@param ext インプレースモード時にバックアップファイルに付加する拡張子を
文字列で指定します。
ピリオドも含める必要があ... -
Gem
:: Installer # write _ spec (27304.0) -
Ruby スクリプト形式で .gemspec ファイルを作成します。
Ruby スクリプト形式で .gemspec ファイルを作成します。 -
ARGF
. class # inspect -> String (27301.0) -
常に文字列 "ARGF" を返します。
常に文字列 "ARGF" を返します。 -
BigDecimal
# inspect -> String (27301.0) -
BigDecimal オブジェクトを表す文字列を返します。
BigDecimal オブジェクトを表す文字列を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1234.5678").inspect
# => "0.12345678e4"
//} -
CSV
:: Table # inspect -> String (27301.0) -
モードとサイズを US-ASCII な文字列で返します。
モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//} -
Complex
# inspect -> String (27301.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
//emlist[例][ruby]{
Complex(2).inspect # => "(2+0i)"
Complex('-8/6').inspect # => "((-4/3)+0i)"
Complex('1/2i').inspect # => "(0+(1/2)*i)"
Complex(0, Float::INFINITY).inspect # => "(0+Infinity*i)"
Complex(Float:... -
FalseClass
# inspect -> String (27301.0) -
常に文字列 "false" を返します。
常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//} -
Float
# inspect -> String (27301.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
固定小数点、浮動小数点の形式か、 "Infinity"、"-Infinity"、"NaN" のいず
れかを返します。
@return 文字列を返します。
//emlist[例][ruby]{
0.00001.to_s # => "1.0e-05"
3.14.to_s # => "3.14"
10000_00000_00000.0.to_s # => "100000000000000.0"
10000_00000_00000_00000.0.to_s # => "1.0e+19"
... -
Gem
:: SpecFetcher # legacy _ repos -> Array (27301.0) -
RubyGems 1.2 未満で作成されたリポジトリの配列を返します。
RubyGems 1.2 未満で作成されたリポジトリの配列を返します。 -
Gem
:: SpecFetcher # list(all = false) -> Array (27301.0) -
Gem::sources に格納されている各ソースから利用可能な Gem のリストを取得して返します。
Gem::sources に格納されている各ソースから利用可能な Gem のリストを取得して返します。
@param list 真を指定すると全てのバージョンの情報を返します。 -
Gem
:: SpecFetcher # warn _ legacy(exception) { . . . } -> bool (27301.0) -
Gem::SpecFetcher#fetch で例外が発生した場合に呼び出されます。
Gem::SpecFetcher#fetch で例外が発生した場合に呼び出されます。
RubyGems 1.2 未満で作成したリポジトリにアクセスした事が原因で例外が発生した場合には
警告が表示されます。またこの場合、ブロックを与えていればブロックは評価されます。
それ以外の原因で例外が発生した場合は偽を返します。
@param exception 例外オブジェクトを指定します。
@see Gem::SpecFetcher#fetch -
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 # assign _ defaults -> () (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 # development _ dependencies -> Array (27301.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: Specification # email -> String (27301.0) -
メールアドレスを返します。
メールアドレスを返します。 -
Gem
:: Specification # email=(email) (27301.0) -
メールアドレスをセットします。
メールアドレスをセットします。
@param email メールアドレスを指定します。 -
Gem
:: Specification # executable -> String (27301.0) -
実行可能ファイル名を返します。
実行可能ファイル名を返します。 -
Gem
:: Specification # executables -> [String] (27301.0) -
実行可能ファイル名のリストを返します。
実行可能ファイル名のリストを返します。 -
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 # file _ name -> String (27301.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
Gem
:: Specification # files -> [String] (27301.0) -
この Gem パッケージに含まれるファイル名の配列を返します。
この Gem パッケージに含まれるファイル名の配列を返します。 -
Gem
:: Specification # full _ gem _ path -> String (27301.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # full _ name -> String (27301.0) -
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
プラットフォームの情報が指定されている場合は、それも含みます (name-version-platform)。 -
Gem
:: Specification # installation _ path -> String (27301.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: Specification # lib _ files -> [String] (27301.0) -
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths 以下にあるファイルのリストを返します。
この Gem パッケージに含まれているファイルのうち Gem::Specification#require_paths
以下にあるファイルのリストを返します。 -
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 # normalize -> [String] (27301.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # original _ name -> String (27301.0) -
このメソッドは後方互換性のために残されています。
このメソッドは後方互換性のために残されています。
@see Gem::Specification#full_name -
Gem
:: Specification # original _ platform -> String (27301.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # original _ platform=(platform) (27301.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Gem
:: Specification # platform -> String (27301.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # post _ install _ message -> String (27301.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Gem
:: Specification # post _ install _ message=(message) (27301.0) -
インストール完了後に表示するメッセージをセットします。
インストール完了後に表示するメッセージをセットします。
@param message メッセージを指定します。 -
Gem
:: Specification # test _ file -> String (27301.0) -
Gem::Specification#test_files の単数バージョンです。
Gem::Specification#test_files の単数バージョンです。 -
Gem
:: Specification # test _ files -> [String] (27301.0) -
ユニットテストのファイルのリストを返します。
ユニットテストのファイルのリストを返します。 -
Gem
:: Specification # test _ suite _ file -> String (27301.0) -
この属性は非推奨です。 Gem::Specification#test_files を使用してください。
この属性は非推奨です。 Gem::Specification#test_files を使用してください。 -
Gem
:: Specification # validate -> bool (27301.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Gem
:: Specification # yaml _ initialize (27301.0) -
@todo
@todo -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (27301.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
既に存在する複数形の属性の単数形バージョンを定義します。
これは単に一つの引数を受け取りそれを配列に追加するようなヘルパーメソッドを定義するということです。
例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plural 属性名の複数形を... -
Gem
:: Specification . attribute _ defaults -> Array (27301.0) -
@todo
@todo
@@attributes の複製を返します。 -
Gem
:: Specification . default _ value(name) -> object (27301.0) -
与えられた名前の属性のデフォルト値を返します。
与えられた名前の属性のデフォルト値を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . list -> Array (27301.0) -
実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。
実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。 -
Gem
:: Specification . normalize _ yaml _ input(input) -> String (27301.0) -
YAML 形式の gemspec を正しくフォーマットします。
YAML 形式の gemspec を正しくフォーマットします。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: Specification . read _ only(*names) -> () (27301.0) -
与えられた属性名を読み取り専用にします。
与えられた属性名を読み取り専用にします。
@param names 属性名を一つ以上指定します。 -
Gem
:: Specification :: MARSHAL _ FIELDS -> Hash (27301.0) -
@todo
@todo -
Module
# inspect -> String (27301.0) -
モジュールやクラスの名前を文字列で返します。
モジュールやクラスの名前を文字列で返します。
このメソッドが返す「モジュール / クラスの名前」とは、
より正確には「クラスパス」を指します。
クラスパスとは、ネストしているモジュールすべてを
「::」を使って表示した名前のことです。
クラスパスの例としては「CGI::Session」「Net::HTTP」が挙げられます。
@return 名前のないモジュール / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A... -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ UNSPECIFIED -> Integer (27301.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 未指定を意味します。
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
未指定を意味します。
詳しくは 3280 や X.509 を参照してください。 -
Rational
# inspect -> String (27301.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
"(3/5)", "(-17/7)" のように10進数の表記を返します。
@return 有理数の表記にした文字列を返します。
//emlist[例][ruby]{
Rational(5, 8).inspect # => "(5/8)"
Rational(2).inspect # => "(2/1)"
Rational(-8, 6).inspect # => "(-4/3)"
Rational(0.5).inspect # => "(1/2)"
//}
@see Rational#to_s -
Scanf
:: FormatSpecifier # letter (27301.0) -
@todo
@todo -
Shell
:: Filter # inspect -> String (27301.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect -
Symbol
# inspect -> String (27301.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。
:fred.inspect #=> ":fred" -
Thread
:: Backtrace :: Location # inspect -> String (27301.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文
字列に変換したオブジェクトを返します。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.inspect
end
# => "path/to/foo.rb:5:in ... -
TrueClass
# inspect -> String (27301.0) -
常に文字列 "true" を返します。
常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//}