ライブラリ
- ビルトイン (44)
- bigdecimal (1)
- csv (1)
- ipaddr (1)
-
irb
/ inspector (1) - matrix (1)
- openssl (1)
- optparse (1)
- rake (5)
-
rake
/ gempackagetask (2) -
rdoc
/ markup (1) -
rubygems
/ commands / build _ command (1) -
rubygems
/ commands / dependency _ command (2) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / which _ command (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (5) -
rubygems
/ format (1) -
rubygems
/ gem _ path _ searcher (6) -
rubygems
/ indexer (3) -
rubygems
/ installer (4) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ input (2) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ require _ paths _ builder (1) -
rubygems
/ server (1) -
rubygems
/ source _ index (8) -
rubygems
/ source _ info _ cache (1) -
rubygems
/ spec _ fetcher (4) -
rubygems
/ specification (97) -
rubygems
/ uninstaller (7) -
rubygems
/ validator (1) - scanf (16)
- socket (4)
- strscan (1)
クラス
-
ARGF
. class (4) - Addrinfo (2)
- Array (2)
- BasicObject (3)
- BigDecimal (1)
-
CSV
:: Table (1) - FalseClass (2)
- Float (2)
-
Gem
:: Commands :: BuildCommand (1) -
Gem
:: Commands :: DependencyCommand (2) -
Gem
:: Commands :: LockCommand (1) -
Gem
:: Commands :: WhichCommand (1) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (5) -
Gem
:: Format (1) -
Gem
:: GemPathSearcher (6) -
Gem
:: Indexer (3) -
Gem
:: Installer (4) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarInput (2) -
Gem
:: RemoteFetcher (1) -
Gem
:: Server (1) -
Gem
:: SourceIndex (8) -
Gem
:: SourceInfoCache (1) -
Gem
:: SpecFetcher (4) -
Gem
:: Specification (97) -
Gem
:: Uninstaller (7) -
Gem
:: Validator (1) - Hash (2)
- IPAddr (1)
-
IRB
:: Inspector (1) - Integer (2)
- MatchData (1)
- Matrix (1)
- Module (7)
- Object (5)
-
OpenSSL
:: HMAC (1) -
OptionParser
:: ParseError (1) - Proc (2)
-
Process
:: Status (1) -
RDoc
:: Markup (1) -
Rake
:: FileList (1) -
Rake
:: GemPackageTask (2) -
Rake
:: Task (1) -
Rake
:: TaskArguments (2) - Range (4)
- Rational (1)
-
Scanf
:: FormatSpecifier (11) -
Scanf
:: FormatString (3) -
Socket
:: AncillaryData (1) -
Socket
:: Ifaddr (1) - String (3)
- StringScanner (1)
- Thread (3)
-
Thread
:: Backtrace :: Location (1) - TracePoint (1)
- TrueClass (1)
モジュール
キーワード
- === (1)
-
_ dump (1) - abbreviate (1)
- add (1)
-
add
_ bindir (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ runtime _ dependency (1) -
add
_ spec (1) -
add
_ special (1) -
add
_ specs (1) -
alias
_ method (1) -
ask
_ if _ ok (1) -
assign
_ defaults (1) - autorequire (1)
- autorequire= (1)
- bindir (1)
- bindir= (1)
-
cache
_ dir (1) -
cert
_ chain (1) -
cert
_ chain= (1) -
compact
_ specs (1) - conversion (1)
-
count
_ space? (1) - date (1)
- date= (1)
-
default
_ executable (1) -
default
_ executable= (1) - dependencies (1)
-
dependencies
_ ok? (1) -
dependency
_ order (1) -
dependent
_ gems (1) - description (1)
- description= (1)
-
development
_ dependencies (1) - download (1)
- email (1)
- email= (1)
-
ensure
_ dependency (1) - executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- extensions (1)
- extensions= (1)
-
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - fetch (1)
-
file
_ name (1) - files (1)
- files= (1)
- find (1)
-
find
_ all (1) -
find
_ matching (1) -
find
_ name (2) -
find
_ reverse _ dependencies (1) -
find
_ spec _ by _ name _ and _ version (1) -
full
_ gem _ path (1) -
full
_ name (1) -
gem
_ paths (1) -
gem
_ spec (1) -
has
_ rdoc (1) -
has
_ rdoc= (1) -
has
_ rdoc? (1) -
has
_ test _ suite? (1) -
has
_ unit _ tests? (1) - homepage (1)
- homepage= (1)
- include? (1)
- init (1)
-
init
_ gemspecs (1) -
inplace
_ mode (1) -
inplace
_ mode= (1) - inspect (26)
-
inspect
_ sockaddr (1) -
inspect
_ value (1) - install (1)
-
installation
_ path (1) -
instance
_ eval (2) -
ip
_ pktinfo (1) -
ipv6
_ unspecified? (1) -
last
_ spec (1) -
last
_ spec _ tried (1) -
latest
_ specs (2) - letter (1)
-
lib
_ dirs _ for (1) -
lib
_ files (1) -
load
_ gems _ in (1) -
load
_ gemspec (1) -
load
_ gemspecs (1) - loaded= (1)
- loaded? (1)
-
loaded
_ from (1) -
loaded
_ from= (1) -
mark
_ version (1) - match (1)
- matched (1)
-
matched
_ string (1) -
matching
_ file? (1) -
matching
_ files (1) - member? (1)
-
mid
_ match? (1) - name (2)
- name= (1)
- normalize (1)
-
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) -
path
_ ok? (1) - pathmap (2)
- platform (1)
- platform= (1)
-
print
_ dependencies (1) - private (1)
- protected (1)
- public (1)
-
re
_ string (1) - remove (1)
-
remove
_ by _ name (1) -
remove
_ executables (1) -
remove
_ spec (1) -
require
_ path (1) -
require
_ path= (1) -
require
_ paths (1) -
require
_ paths= (1) -
required
_ ruby _ version (1) -
required
_ ruby _ version= (1) -
required
_ rubygems _ version (1) -
required
_ rubygems _ version= (1) - requirements (1)
- requirements= (1)
-
rubygems
_ version (1) -
rubygems
_ version= (1) -
runtime
_ dependencies (1) -
safe
_ level (1) - sanitize (1)
-
satisfies
_ requirement? (1) - scanf (2)
- search (2)
- send (2)
-
signing
_ key (1) -
signing
_ key= (1) -
singleton
_ method _ undefined (1) -
spec
_ count (1) -
spec
_ path (1) -
spec
_ predecessors (1) - specification (1)
-
specification
_ version (1) -
specification
_ version= (1) - summary (1)
- summary= (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
_ re (1) -
to
_ ruby (1) -
to
_ s (11) -
uninstall
_ gem (1) -
unit
_ test (1) - untaint (1)
- validate (1)
- version (1)
- version= (1)
-
warn
_ legacy (1) - width (1)
-
write
_ require _ paths _ file _ if _ needed (1) -
write
_ spec (1) -
yaml
_ initialize (1)
検索結果
先頭5件
- Gem
:: DependencyInstaller # find _ spec _ by _ name _ and _ version(gem _ name , version = Gem :: Requirement . default) -> Array - Gem
:: Commands :: DependencyCommand # find _ reverse _ dependencies(spec) -> Array - Gem
:: Installer # spec -> Gem :: Specification - Gem
:: Uninstaller # spec -> Gem :: Specification - Gem
:: Specification # specification _ version -> Integer
-
Gem
:: DependencyInstaller # find _ spec _ by _ name _ and _ version(gem _ name , version = Gem :: Requirement . default) -> Array (82507.0) -
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と それの存在する URI を含む配列を返します。
与えられた Gem の名前とバージョンに関する条件にマッチする Gem::Specification と
それの存在する URI を含む配列を返します。
@param gem_name Gem の名前を指定します。
@param version Gem が満たすバージョンに関する条件を指定します。 -
Gem
:: Commands :: DependencyCommand # find _ reverse _ dependencies(spec) -> Array (82225.0) -
与えられた Gem スペックに依存する Gem のリストを返します。
与えられた Gem スペックに依存する Gem のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Gem
:: Installer # spec -> Gem :: Specification (73207.0) -
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。 -
Gem
:: Uninstaller # spec -> Gem :: Specification (73207.0) -
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。 -
Gem
:: Specification # specification _ version -> Integer (72904.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: Specification # specification _ version=(version) (72904.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY -
IRB
:: Inspector # inspect _ value(v) -> () (72904.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Gem
:: Format # spec -> Gem :: Specification (64207.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Gem
:: OldFormat # spec -> Gem :: Specification (64207.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (63907.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
Addrinfo
# inspect _ sockaddr -> String (63904.0) -
アドレスやポート番号などの情報を人間に読める形の文字列で返します。
アドレスやポート番号などの情報を人間に読める形の文字列で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).inspect_sockaddr #=> "127.0.0.1:80"
Addrinfo.tcp("ip6-localhost", 80).inspect_sockaddr #=> "[::1]:80"
Addrinfo.unix("/tmp/sock").inspect_sockaddr #=> "/tmp/sock" -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (63904.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (63625.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
Gem
:: Specification # installation _ path -> String (63604.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (55504.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Gem
:: Uninstaller # uninstall _ gem(spec , specs) (55273.0) -
与えられた spec に対応する Gem をアンインストールします。
与えられた spec に対応する Gem をアンインストールします。
@param spec アンインストール指定されている Gem の Gem::Specification を指定します。
@param specs アンインストールする Gem のリストを指定します。
このパラメータは破壊的に変更されます。 -
Object
# untaint -> self (54922.0) -
オブジェクトの「汚染マーク」を取り除きます。
オブジェクトの「汚染マーク」を取り除きます。
汚染マークを取り除くことによる危険性はプログラマが責任を負う必要が
あります。
オブジェクトの汚染に関してはspec/safelevelを参照してください。
ruby -e 'p ARGV[0].tainted?;t=+ARGV[0];t.untaint;p t.tainted?' hoge
# => true
# false
このメソッドは Ruby 2.7 から deprecated で、Ruby 3.2 で削除予定です。
@see Object#taint,Object#tainted? -
Gem
:: Installer # install -> Gem :: Specification (54904.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 # original _ name -> String (54904.0) -
このメソッドは後方互換性のために残されています。
このメソッドは後方互換性のために残されています。
@see Gem::Specification#full_name -
Gem
:: Specification # original _ platform -> String (54604.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # original _ platform=(platform) (54604.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (54604.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency -
MatchData
# inspect -> String (54604.0) -
self の内容を人間に読みやすい文字列にして返します。
self の内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
puts /.$/.match("foo").inspect
# => #<MatchData "o">
puts /(.)(.)(.)/.match("foo").inspect
# => #<MatchData "foo" 1:"f" 2:"o" 3:"o">
puts /(.)(.)?(.)/.match("fo").inspect
# => #<MatchData "fo" 1:"f" 2:nil 3:"o">
puts /(?<foo>.)(?<bar>.)(?<baz>.)/.... -
OptionParser
:: ParseError # inspect -> String (54604.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
@return 文字列を返します。
@see Object#inspect -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (46573.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。 -
Gem
:: SourceIndex # add _ spec(gem _ spec) -> Gem :: Specification (46528.0) -
自身に引数で与えられた Gem::Specification のインスタンスを追加します。
自身に引数で与えられた Gem::Specification のインスタンスを追加します。
@param gem_spec Gem::Specification のインスタンスを指定します。 -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (46504.0) -
依存関係を満たす gemspec の名前の配列を返します。
依存関係を満たす gemspec の名前の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Gem
:: GemPathSearcher # matching _ file?(spec , path) -> bool (46273.0) -
与えられた spec に path が含まれている場合、真を返します。 そうでない場合は偽を返します。
与えられた spec に path が含まれている場合、真を返します。
そうでない場合は偽を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。 -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (46210.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。 -
Gem
:: DependencyList # find _ name(full _ name) -> Gem :: Specification | nil (46204.0) -
自身に含まれる与えられた名前を持つ Gem::Specification のインスタンスを返します。
自身に含まれる与えられた名前を持つ Gem::Specification のインスタンスを返します。
見つからなかった場合は nil を返します。
@param full_name バージョンを含むフルネームで Gem の名前を指定します。
@see Gem::Specification#full_name -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (46204.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (46204.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
Gem
:: SourceIndex # find _ name(gem _ name , version _ requirement = Gem :: Requirement . default) -> Gem :: Specification (46204.0) -
短い名前で正確にマッチする Gem を返します。
短い名前で正確にマッチする Gem を返します。
@param gem_name Gem の名前を指定します。
@param version_requirement
@see Gem::Requirement -
Gem
:: Specification # name=(name) (46204.0) -
この Gem パッケージの名前をセットします。
この Gem パッケージの名前をセットします。
@param name この Gem パッケージの名前を指定します。 -
Gem
:: Indexer # compact _ specs(specs) -> Array (45904.0) -
与えられたスペックを元にスペックを一意に特定できるだけの情報を持った配列を作成して 返します。
与えられたスペックを元にスペックを一意に特定できるだけの情報を持った配列を作成して
返します。
@param specs Gem::Specification の配列を指定します。 -
Gem
:: SourceIndex # add _ specs(*gem _ specs) -> Hash (45904.0) -
自身に引数で与えられた Gem::Specification のインスタンスを全て追加します。
自身に引数で与えられた Gem::Specification のインスタンスを全て追加します。
@param gem_specs 複数の Gem::Specification のインスタンスを指定します。 -
Gem
:: Specification # add _ dependency(gem , *requirements) -> [Gem :: Dependency] (45904.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] (45904.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] (45904.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 # extensions=(paths) (45904.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
@param paths 拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを指定します。 -
Matrix
# inspect -> String (45676.0) -
自分自身を見やすい形式に文字列化し、その文字列を返します。
自分自身を見やすい形式に文字列化し、その文字列を返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]
p m.inspect # => "Matrix[[1, 2], [3, 4.5]]"
//} -
CSV
:: Table # inspect -> String (45640.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>"
//} -
Hash
# inspect -> String (45640.0) -
ハッシュの内容を人間に読みやすい文字列にして返します。
ハッシュの内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
h = { "c" => 300, "a" => 100, "d" => 400 }
h.inspect # => "{\"c\"=>300, \"a\"=>100, \"d\"=>400}"
//} -
Thread
# inspect -> String (45640.0) -
自身を人間が読める形式に変換した文字列を返します。
自身を人間が読める形式に変換した文字列を返します。
//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//} -
Gem
:: Commands :: WhichCommand # gem _ paths(spec) -> Array (45625.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Scanf
:: FormatString # last _ spec (45607.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (45607.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (45607.0) -
@todo
@todo -
ARGF
. class # inspect -> String (45604.0) -
常に文字列 "ARGF" を返します。
常に文字列 "ARGF" を返します。 -
Addrinfo
# ipv6 _ unspecified? -> bool (45604.0) -
IPv6 の不特定アドレス(unspecified address)(::)であれば真を返します。
IPv6 の不特定アドレス(unspecified address)(::)であれば真を返します。 -
Array
# inspect -> String (45604.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
[1, 2, 3, 4].to_s # => "[1, 2, 3, 4]"
[1, 2, 3, 4].inspect # => "[1, 2, 3, 4]"
//} -
BigDecimal
# inspect -> String (45604.0) -
BigDecimal オブジェクトを表す文字列を返します。
BigDecimal オブジェクトを表す文字列を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1234.5678").inspect
# => "0.12345678e4"
//} -
FalseClass
# inspect -> String (45604.0) -
常に文字列 "false" を返します。
常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//} -
Float
# inspect -> String (45604.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
:: SourceIndex # latest _ specs -> Array (45604.0) -
自身に含まれる最新の Gem::Specification のリストを返します。
自身に含まれる最新の Gem::Specification のリストを返します。 -
Gem
:: SpecFetcher # warn _ legacy(exception) { . . . } -> bool (45604.0) -
Gem::SpecFetcher#fetch で例外が発生した場合に呼び出されます。
Gem::SpecFetcher#fetch で例外が発生した場合に呼び出されます。
RubyGems 1.2 未満で作成したリポジトリにアクセスした事が原因で例外が発生した場合には
警告が表示されます。またこの場合、ブロックを与えていればブロックは評価されます。
それ以外の原因で例外が発生した場合は偽を返します。
@param exception 例外オブジェクトを指定します。
@see Gem::SpecFetcher#fetch -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (45604.0) -
実行コマンドの格納場所を返します。
実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。 -
Gem
:: Specification # assign _ defaults -> () (45604.0) -
全ての属性にデフォルト値をセットします。
全ての属性にデフォルト値をセットします。
これはアクセサメソッドを使用して行われるので、ブロックを用いた特別な初期化も
きちんと実行されます。セットされる値はデフォルト値のコピーです。 -
Gem
:: Specification # cert _ chain -> Array (45604.0) -
@todo
@todo -
Gem
:: Specification # cert _ chain=(arr) (45604.0) -
@todo
@todo
@param arr デフォルトは空の配列です。 -
Gem
:: Specification # date=(date) (45604.0) -
@param date 日付をセットします。デフォルトは今日です。
@param date 日付をセットします。デフォルトは今日です。 -
Gem
:: Specification # extensions -> [String] (45604.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを返します。 -
Gem
:: Specification # file _ name -> String (45604.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
Gem
:: Specification # full _ gem _ path -> String (45604.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # full _ name -> String (45604.0) -
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
この Gem パッケージのバージョンを含む完全な名前 (name-version) を返します。
プラットフォームの情報が指定されている場合は、それも含みます (name-version-platform)。 -
Gem
:: Specification # has _ unit _ tests? -> bool (45604.0) -
この Gem パッケージがユニットテストを含むかどうか返します。
この Gem パッケージがユニットテストを含むかどうか返します。
真の場合はユニットテストを含みます。そうでない場合は偽を返します。 -
Gem
:: Specification # mark _ version -> String (45604.0) -
RubyGems のバージョンを内部にセットします。
RubyGems のバージョンを内部にセットします。 -
Gem
:: Specification # name -> String (45604.0) -
この Gem パッケージの名前を返します。
この Gem パッケージの名前を返します。 -
Gem
:: Specification # normalize -> [String] (45604.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # platform -> String (45604.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # platform=(platform) (45604.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Specification # post _ install _ message -> String (45604.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Gem
:: Specification # post _ install _ message=(message) (45604.0) -
インストール完了後に表示するメッセージをセットします。
インストール完了後に表示するメッセージをセットします。
@param message メッセージを指定します。 -
Gem
:: Specification # require _ path -> String (45604.0) -
Gem::Specification#require_paths の単数バージョンです。
Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths -
Gem
:: Specification # require _ path=(path) (45604.0) -
Gem::Specification#require_paths= の単数バージョンです。
Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths= -
Gem
:: Specification # require _ paths -> [String] (45604.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。 -
Gem
:: Specification # require _ paths=(paths) (45604.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを指定します。 -
Gem
:: Specification # yaml _ initialize (45604.0) -
@todo
@todo -
IPAddr
# inspect -> String (45604.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
オブジェクトを人間が読める形式に変換した文字列を返します。 -
Process
:: Status # inspect -> String (45604.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
プロセスの状態を以下のフォーマットで返します。
: 正常終了のとき
#<Process::Status: pid=18262,exited(nnn)>
: シグナルによる停止のとき
#<Process::Status: pid=18262,stopped(SIGxxx=nnn)>
: シグナルによる終了のとき
#<Process::Status: pid=18262,signaled(SIGxxx=nnn)>
: コアダンプしたとき(このステータスの表示はシステムに依存します)
#<Process::Status: pid=1... -
Rake
:: Task # inspect -> String (45604.0) -
自身の情報を人間に読める形式で返します。
自身の情報を人間に読める形式で返します。 -
Rake
:: TaskArguments # inspect -> String (45604.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。
@see Hash#inspect -
Range
# inspect -> String (45604.0) -
self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド で文字列に変換されます)。
self を文字列に変換します(始端と終端のオブジェクトは #inspect メソッド
で文字列に変換されます)。
@see Range#to_s
//emlist[例][ruby]{
(1..5).inspect # => "1..5"
("1".."5").inspect # => "\"1\"..\"5\""
//} -
Rational
# inspect -> String (45604.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 # count _ space? (45604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (45604.0) -
@todo
@todo -
Socket
:: Ifaddr # inspect -> String (45604.0) -
self の情報を人間に読みやすい文字列にして返します。
self の情報を人間に読みやすい文字列にして返します。 -
StringScanner
# inspect -> String (45604.0) -
StringScannerオブジェクトを表す文字列を返します。
StringScannerオブジェクトを表す文字列を返します。
文字列にはクラス名の他、以下の情報が含まれます。
* スキャナポインタの現在位置。
* スキャン対象の文字列の長さ。
* スキャンポインタの前後にある文字。上記実行例の @ がスキャンポインタを表します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.inspect # => "#<StringScanner 0/11 @ \"test ..... -
Thread
:: Backtrace :: Location # inspect -> String (45604.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 ... -
TracePoint
# inspect -> String (45604.0) -
self の状態を人間に読みやすい文字列にして返します。
self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//} -
TrueClass
# inspect -> String (45604.0) -
常に文字列 "true" を返します。
常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//} -
Gem
:: Specification # date -> Time (45304.0) -
日付を返します。
日付を返します。 -
Gem
:: Specification # validate -> bool (45304.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Gem
:: DependencyList # remove _ by _ name(full _ name) -> Gem :: Specification (37504.0) -
与えられた名前を持つ Gem::Specification を自身から削除します。
与えられた名前を持つ Gem::Specification を自身から削除します。
このメソッドでは削除後の依存関係をチェックしません。
@param full_name バージョンを含むフルネームで Gem の名前を指定します。
@see Gem::Specification#full_name, Array#delete_if -
Gem
:: Indexer # sanitize(spec) -> Gem :: Specification (37207.0) -
与えられたスペックの詳細を表す属性をサニタイズします。
与えられたスペックの詳細を表す属性をサニタイズします。
non-ASCII の文字列は、サイトインデックスを文字化けさせることがあります。
non-ASCII の文字列を XML エンティティに置換します。 -
RDoc
:: Markup # add _ special(pattern , name) -> () (36958.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 '... -
String
# scanf(format) -> Array (36928.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
requir... -
String
# scanf(format) {|*ary| . . . } -> Array (36928.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
requir... -
Gem
:: RemoteFetcher # download(spec , source _ uri , install _ dir = Gem . dir) -> String (36925.0) -
source_uri から取得した Gem パッケージをキャッシュディレクトリに配置します。
source_uri から取得した Gem パッケージをキャッシュディレクトリに配置します。
既に Gem パッケージが存在する場合は、ファイルを置き換えませんが source_uri が
ローカルパス (file://) である場合は常にファイルを置き換えます。
@param spec Gem::Specification のインスタンスを指定します。
@param source_uri 取得先の URI を指定します。
@param install_dir ダウンロードしたファイルの配置先を指定します。
@return ローカルにコピーした Gem ファイルのパスを返します。
... -
Gem
:: SourceIndex # load _ gems _ in(*spec _ dirs) -> self (36925.0) -
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
@param spec_dirs gemspec の含まれているディレクトリを複数指定します。