ライブラリ
- ビルトイン (13)
- find (1)
- matrix (1)
- openssl (1)
- rake (2)
-
rake
/ gempackagetask (1) -
rdoc
/ markup (1) -
rexml
/ document (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / which _ command (1) -
rubygems
/ dependency _ list (3) -
rubygems
/ exceptions (1) -
rubygems
/ format (2) -
rubygems
/ gem _ path _ searcher (6) -
rubygems
/ indexer (2) -
rubygems
/ installer (2) -
rubygems
/ old _ format (2) -
rubygems
/ package / tar _ input (2) -
rubygems
/ require _ paths _ builder (1) -
rubygems
/ server (1) -
rubygems
/ source _ index (8) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (3) -
rubygems
/ specification (121) -
rubygems
/ uninstaller (2) -
rubygems
/ validator (1) - scanf (18)
-
shell
/ command-processor (1) - socket (2)
クラス
- Encoding (2)
- Float (2)
-
Gem
:: Commands :: LockCommand (1) -
Gem
:: Commands :: WhichCommand (1) -
Gem
:: DependencyList (3) -
Gem
:: Format (2) -
Gem
:: GemPathSearcher (6) -
Gem
:: Indexer (2) -
Gem
:: Installer (2) -
Gem
:: OldFormat (2) -
Gem
:: Package :: TarInput (2) -
Gem
:: Server (1) -
Gem
:: SourceIndex (8) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (3) -
Gem
:: Specification (120) -
Gem
:: Uninstaller (2) -
Gem
:: Validator (1) - MatchData (1)
- Matrix (1)
- Module (1)
- Object (1)
-
Process
:: Status (1) -
RDoc
:: Markup (1) -
REXML
:: CData (1) -
Rake
:: FileList (1) -
Rake
:: GemPackageTask (1) - Rational (1)
-
Scanf
:: FormatSpecifier (11) -
Scanf
:: FormatString (4) -
Shell
:: CommandProcessor (1) -
Socket
:: AncillaryData (2) - String (3)
-
Thread
:: Backtrace :: Location (1)
モジュール
- Find (1)
-
Gem
:: RequirePathsBuilder (1) - Kernel (3)
-
OpenSSL
:: OCSP (1)
キーワード
-
$ LOAD _ PATH (1) -
CURRENT
_ SPECIFICATION _ VERSION (1) - DATA (1)
- FormatSpecifier (1)
- InvalidSpecificationException (1)
-
MARSHAL
_ FIELDS (1) -
NONEXISTENT
_ SPECIFICATION _ VERSION (1) -
REVOKED
_ STATUS _ UNSPECIFIED (1) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (1)
-
SPECIFICATION
_ VERSION _ HISTORY (1) - SPECIFIERS (1)
-
STATELESS
_ ISO _ 2022 _ JP _ KDDI (1) - Specification (1)
- SpecificationCommand (1)
-
Stateless
_ ISO _ 2022 _ JP _ KDDI (1) - TODAY (1)
-
_ dump (1) -
_ load (1) - abbreviate (1)
-
add
_ bindir (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ runtime _ dependency (1) -
add
_ spec (1) -
add
_ special (1) -
array
_ attribute (1) -
array
_ attributes (1) -
assign
_ defaults (1) -
at
_ exit (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
attribute
_ names (1) - attributes (1)
- autorequire (1)
- autorequire= (1)
- bindir (1)
- bindir= (1)
-
cert
_ chain (1) -
cert
_ chain= (1) - conversion (1)
-
count
_ space? (1) - date (1)
- date= (1)
-
def
_ builtin _ commands (1) -
default
_ executable (1) -
default
_ executable= (1) -
default
_ value (1) - dependencies (1)
-
dependency
_ order (1) -
dependent
_ gems (1) - description (1)
- description= (1)
-
development
_ dependencies (1) - email (1)
- email= (1)
- executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- exit (1)
- extensions (1)
- extensions= (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) -
from
_ yaml (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)
-
init
_ gemspecs (1) - inspect (6)
-
inspect
_ i (1) -
inspect
_ obj (1) - install (1)
-
installation
_ path (1) -
ip
_ pktinfo (2) -
last
_ spec (1) -
last
_ spec _ tried (1) -
latest
_ specs (3) - letter (1)
-
lib
_ dirs _ for (1) -
lib
_ files (1) - list (1)
- load (1)
-
load
_ gemspec (1) -
load
_ specification (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) -
method
_ inspect (1) -
mid
_ match? (1) - name (1)
- name= (1)
- new (2)
- normalize (1)
-
normalize
_ yaml _ input (1) -
original
_ name (1) -
original
_ platform (1) -
original
_ platform= (1) -
overwrite
_ accessor (1) -
path
_ ok? (1) - pathmap (2)
- platform (1)
- platform= (1)
- private (1)
-
rb
_ obj _ inspect (1) -
rb
_ thread _ inspect (1) -
re
_ string (1) -
read
_ only (1) -
remove
_ by _ name (1) -
remove
_ spec (1) -
require
_ path (1) -
require
_ path= (1) -
require
_ paths (1) -
require
_ paths= (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) - requirements (1)
- requirements= (1)
-
ruby 1
. 8 . 4 feature (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ specification (1) -
rubygems
_ version (1) -
rubygems
_ version= (1) -
runtime
_ dependencies (1) - sanitize (1)
-
satisfies
_ requirement? (1) - scanf (2)
- search (3)
-
signing
_ key (1) -
signing
_ key= (1) - spec= (2)
-
spec
_ count (1) -
spec
_ path (1) -
special
_ local _ set (1) -
specific
_ eval (1) - specification (1)
-
specification
_ version (1) -
specification
_ version= (1) - summary (1)
- summary= (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 (2) -
unit
_ test (1) - validate (1)
- version (1)
- version= (1)
- width (1)
-
write
_ require _ paths _ file _ if _ needed (1) - yaml (1)
-
yaml
_ initialize (1) - パターンマッチ (1)
- 制御構造 (1)
- 正規表現 (1)
- 演算子式 (1)
- 終了処理 (1)
検索結果
先頭5件
-
Gem
:: Format # spec -> Gem :: Specification (63904.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Gem
:: OldFormat # spec -> Gem :: Specification (63904.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Gem
:: Installer # spec -> Gem :: Specification (54904.0) -
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。
インストールしようとしている Gem に対応する Gem::Specification のインスタンスを返します。 -
Gem
:: Uninstaller # spec -> Gem :: Specification (54904.0) -
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。
Gem::Uninstaller#uninstall_gem の実行中のみセットされます。 -
Gem
:: Specification # installation _ path -> String (54601.0) -
この Gem パッケージのインストール先のパスを返します。
この Gem パッケージのインストール先のパスを返します。 -
Gem
:: Specification # specification _ version -> Integer (54601.0) -
この Gem パッケージに用いられている gemspec のバージョンを返します。
この Gem パッケージに用いられている gemspec のバージョンを返します。 -
Gem
:: Specification # specification _ version=(version) (54601.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY -
Gem
:: Specification :: CURRENT _ SPECIFICATION _ VERSION -> 2 (54601.0) -
現在の gemspec のバージョンを表す定数です。
現在の gemspec のバージョンを表す定数です。 -
Gem
:: Specification :: NONEXISTENT _ SPECIFICATION _ VERSION -> -1 (54601.0) -
明確に指定されていない時の gemspec のバージョンを表します。
明確に指定されていない時の gemspec のバージョンを表します。 -
Gem
:: Specification :: SPECIFICATION _ VERSION _ HISTORY -> Hash (54601.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Gem
:: SpecFetcher # latest _ specs -> Hash (45601.0) -
キャッシュされている最新の gemspec を返します。
キャッシュされている最新の gemspec を返します。 -
Gem
:: SourceIndex # specification(full _ name) -> Gem :: Specification | nil (37201.0) -
指定された名前の Gem::Specification オブジェクトを返します。
指定された名前の Gem::Specification オブジェクトを返します。
@param full_name Gem のフルネームを指定します。 -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (37201.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (36604.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
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 のリストを返します。 -
Gem
:: Specification # date=(date) (36601.0) -
@param date 日付をセットします。デフォルトは今日です。
@param date 日付をセットします。デフォルトは今日です。 -
Gem
:: Specification # original _ platform=(platform) (36601.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Gem
:: Specification # platform=(platform) (36601.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Specification # require _ path=(path) (36601.0) -
Gem::Specification#require_paths= の単数バージョンです。
Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths= -
Gem
:: Specification # require _ paths=(paths) (36601.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを指定します。 -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ UNSPECIFIED -> Integer (36601.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 未指定を意味します。
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
未指定を意味します。
詳しくは 3280 や X.509 を参照してください。 -
Gem
:: Specification # date -> Time (36301.0) -
日付を返します。
日付を返します。 -
Gem
:: Specification # full _ gem _ path -> String (36301.0) -
この Gem パッケージへのフルパスを返します。
この Gem パッケージへのフルパスを返します。 -
Gem
:: Specification # original _ platform -> String (36301.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # platform -> String (36301.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # require _ path -> String (36301.0) -
Gem::Specification#require_paths の単数バージョンです。
Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths -
Gem
:: Specification # require _ paths -> [String] (36301.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。 -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (36301.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency -
Gem
:: Specification # validate -> bool (36301.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Gem
:: Specification . array _ attribute(name) -> () (36301.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . array _ attributes -> Array (36301.0) -
@@array_attributes の複製を返します。
@@array_attributes の複製を返します。
@see Object#dup -
Gem
:: Specification . attribute(name) -> () (36301.0) -
デフォルト値を指定したアクセサを定義するために使用します。
デフォルト値を指定したアクセサを定義するために使用します。
以下の副作用があります。
* クラス変数 @@attributes, @@default_value を変更します。
* 通常の属性書き込みメソッドを定義します。
* デフォルト値を持つ属性読み取りメソッドのように振る舞うメソッドを定義します。 -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (36301.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 (36301.0) -
@todo
@todo
@@attributes の複製を返します。 -
Gem
:: Specification . attribute _ names -> Array (36301.0) -
属性名の配列を返します。
属性名の配列を返します。 -
Gem
:: Specification . attributes(*args) -> () (36301.0) -
複数の属性を一度に作成するために使用します。
複数の属性を一度に作成するために使用します。
各属性のデフォルト値は nil になります。
@param args 属性名を一つ以上指定します。 -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (36301.0) -
必須の属性を作成します。
必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . required _ attribute?(name) -> bool (36301.0) -
必須属性であれば真を返します。
必須属性であれば真を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attributes -> Array (36301.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
MatchData
# inspect -> String (36301.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>.)/.... -
Scanf
:: FormatSpecifier # match(str) (36301.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched (36301.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (36301.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # mid _ match? (36301.0) -
@todo
@todo -
rubygems
/ specification (36019.0) -
Gem パッケージのメタデータを扱うためのライブラリです。
Gem パッケージのメタデータを扱うためのライブラリです。
通常 gemspec ファイルや Rakefile でメタデータを定義します。
例:
spec = Gem::Specification.new do |s|
s.name = 'rfoo'
s.version = '1.0'
s.summary = 'Example gem specification'
...
end -
Gem
:: Commands :: SpecificationCommand (36001.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのクラスです。 -
Gem
:: InvalidSpecificationException (36001.0) -
不正な gemspec に関する例外です。
不正な gemspec に関する例外です。 -
Gem
:: Specification (36001.0) -
Gem パッケージのメタデータを扱うためのクラスです。
Gem パッケージのメタデータを扱うためのクラスです。 -
Scanf
:: FormatSpecifier (36001.0) -
-
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 ... -
Gem
:: GemPathSearcher # matching _ file?(spec , path) -> bool (27970.0) -
与えられた spec に path が含まれている場合、真を返します。 そうでない場合は偽を返します。
与えられた spec に path が含まれている場合、真を返します。
そうでない場合は偽を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。 -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (27970.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。 -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (27907.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。 -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (27901.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (27901.0) -
依存関係を満たす gemspec の名前の配列を返します。
依存関係を満たす gemspec の名前の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Gem
:: Format # spec=(spec) (27625.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Gem
:: OldFormat # spec=(spec) (27625.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Scanf
:: FormatString # last _ spec (27304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (27304.0) -
@todo
@todo -
Scanf
:: FormatString # spec _ count (27304.0) -
@todo
@todo -
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"
... -
Matrix
# inspect -> String (27301.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]]"
//} -
Process
:: Status # inspect -> String (27301.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... -
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
:: FormatString :: SPECIFIERS (27301.0) -
@todo
@todo -
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 ... -
パターンマッチ (27001.0)
-
パターンマッチ * patterns * variable_binding * variable_pinning * matching_non_primitive_objects * guard_clauses * current_feature_status * pattern_syntax * some_undefined_behavior_examples
パターンマッチ
* patterns
* variable_binding
* variable_pinning
* matching_non_primitive_objects
* guard_clauses
* current_feature_status
* pattern_syntax
* some_undefined_behavior_examples
パターンマッチは、構造化された値に対して、構造をチェックし、マッチした部分をローカル変数に束縛するという、深いマッチを可能にする実験的な機能です。(『束縛』は、パターンマッチの輸入元である関数型言語... -
Gem
:: SourceIndex # add _ spec(gem _ spec) -> Gem :: Specification (19225.0) -
自身に引数で与えられた Gem::Specification のインスタンスを追加します。
自身に引数で与えられた Gem::Specification のインスタンスを追加します。
@param gem_spec Gem::Specification のインスタンスを指定します。 -
Gem
:: Indexer # abbreviate(spec) -> Gem :: Specification (19222.0) -
ダウンロードを速くするために与えられた Gem::Specification の持つデータを 小さくします。
ダウンロードを速くするために与えられた Gem::Specification の持つデータを
小さくします。
@param spec Gem::Specification を指定します。 -
Gem
:: SourceIndex # remove _ spec(full _ name) -> Gem :: Specification (18904.0) -
引数で指定された名前を持つ Gem をインデックスから削除します。
引数で指定された名前を持つ Gem をインデックスから削除します。 -
Rake
:: GemPackageTask # gem _ spec -> Gem :: Specification (18904.0) -
package ターゲットで使用する gemspec を返します。
package ターゲットで使用する gemspec を返します。
gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。 -
Gem
:: Package :: TarInput # load _ gemspec(io) -> Gem :: Specification | nil (18901.0) -
YAML 形式の gemspec を io から読み込みます。
YAML 形式の gemspec を io から読み込みます。
@param io 文字列か IO オブジェクトを指定します。
@see Gem::Specification.from_yaml -
Gem
:: Package :: TarInput # metadata -> Gem :: Specification (18901.0) -
メタデータを返します。
メタデータを返します。 -
Gem
:: Commands :: WhichCommand # gem _ paths(spec) -> Array (18622.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Gem
:: Uninstaller # path _ ok?(spec) -> bool (18622.0) -
アンインストール指定されている Gem がインストールされているパスをチェックします。
アンインストール指定されている Gem がインストールされているパスをチェックします。
@param spec Gem::Specification を指定します。 -
Rake
:: FileList # pathmap(spec = nil) -> Rake :: FileList (18604.0) -
各要素に String#pathmap を適用した新しい Rake::FileList を返します。
各要素に String#pathmap を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1", "test2", "test3"]
end
//}
@see String#pathmap -
String
# pathmap(spec = nil) { . . . } -> String (18604.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
与えられた書式指定文字列に応じてパス(自身)を変換します。
与えられた書式指定文字列は変換の詳細を制御します。
指定できる書式指定文字列は以下の通りです。
: %p
完全なパスを表します。
: %f
拡張子付きのファイル名を表します。ディレクトリ名は含まれません。
: %n
拡張子なしのファイル名を表します。
: %d
パスに含まれるディレクトリのリストを表します。
: %x
パスに含まれるファイルの拡張子を表します。拡張子が無い場合は空文字列を表します。
: %X
拡張子以外すべてを表します。
: %s
定義されていれば、代替のファイルセパレータを表します。... -
Gem
:: Specification . _ load(str) -> Gem :: Specification (18601.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (18601.0) -
YAML ファイルから gemspec をロードします。
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec のバージョンチェックも行います。
@param input 文字列か IO オブジェクトを指定します。 -
Gem
:: Specification . load(filename) -> Gem :: Specification (18601.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
RDoc
:: Markup # add _ special(pattern , name) -> () (18601.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 '... -
static VALUE inspect
_ obj(VALUE obj , VALUE str) (18601.0) -
-
static VALUE method
_ inspect(VALUE method) (18601.0) -
-
static VALUE rb
_ obj _ inspect(VALUE obj) (18601.0) -
Object#inspect の実体です。
Object#inspect の実体です。 -
static VALUE rb
_ thread _ inspect(VALUE thread) (18601.0) -
-
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (18601.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。 -
static int inspect
_ i(ID id , VALUE value , VALUE str) (18601.0) -
-
static void special
_ local _ set(char c , VALUE val) (18601.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
Kernel
. # at _ exit { . . . } -> Proc (18502.0) -
与えられたブロックをインタプリタ終了時に実行します。
与えられたブロックをインタプリタ終了時に実行します。
at_exitがメソッドである点を除けば、END ブロックによる終了
処理の登録と同等です。登録した処理を取り消すことはできません。
spec/terminateも参照してください。
@return 登録した処理を Proc オブジェクトで返します。
//emlist[例][ruby]{
3.times do |i|
at_exit{puts "at_exit#{i}"}
end
END{puts "END"}
at_exit{puts "at_exit"}
puts "main_end"
#=> main_end
# a... -
Object
:: DATA -> File (18337.0) -
スクリプトの __END__ プログラムの終り以降をアクセスする File オブジェクト。
スクリプトの __END__
プログラムの終り以降をアクセスする File オブジェクト。
d:spec/program#terminateも参照。
ソースファイルの __END__ 以降は解析・実行の対象にならないので
その部分にプログラムが利用するためのデータを書き込んでおくことができます。
DATA 定数はそのデータ部分にアクセスするための File オブジェクトを保持しています。
__END__ を含まないプログラムにおいては DATA は定義されません。
=== 注意
* DATA.rewind で移動する読みとり位置は __END__ 直後ではなく、
... -
Encoding
:: STATELESS _ ISO _ 2022 _ JP _ KDDI -> Encoding (18319.0) -
stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP の亜種です。
KDDI の携帯電話で使われる絵文字が含まれています。
@see https://www.au.com/ezfactory/tec/spec/img/typeD.pdf -
Encoding
:: Stateless _ ISO _ 2022 _ JP _ KDDI -> Encoding (18319.0) -
stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP の亜種です。
KDDI の携帯電話で使われる絵文字が含まれています。
@see https://www.au.com/ezfactory/tec/spec/img/typeD.pdf -
Module
# private(*name) -> self (18319.0) -
メソッドを private に設定します。
メソッドを private に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドを関数形式でだけ呼び出せるように(private)設定します。
引数が与えられた時には引数によって指定されたメソッドを private に
設定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
//emlist[例][ruby]{
class Foo
... -
Gem
:: Specification # extensions=(paths) (18301.0) -
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストをセットします。
@param paths 拡張ライブラリをコンパイルするために必要な extconf.rb 形式のファイルのリストを指定します。 -
Gem
:: Specification # extra _ rdoc _ files=(paths) (18301.0) -
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
RDoc でドキュメントを作成する際に使用する特別なファイルのリストをセットします。
@param paths RDoc でドキュメントを作成する際に使用する特別なファイルのリストを指定します。 -
Gem
:: Specification # loaded _ from=(path) (18301.0) -
この Gem パッケージの gemspec がある場所をセットします。
この Gem パッケージの gemspec がある場所をセットします。
@param path この Gem パッケージの gemspec がある場所を指定します。 -
Gem
:: Specification # requirements=(informations) (18301.0) -
この Gem パッケージを動作させるのに必要な条件をセットします。 これはユーザのためのシンプルな情報をセットします。
この Gem パッケージを動作させるのに必要な条件をセットします。
これはユーザのためのシンプルな情報をセットします。
@param informations 情報を文字列の配列で指定します。 -
終了処理 (18037.0)
-
終了処理 Ruby はスクリプトの終端に達した場合や捕捉していない例外が発生した場 合に終了します(関数 Kernel.#exit や Kernel.#abort 、メインスレッドに対する Thread.kill などは SystemExit 例外を発生させます)。終了時には以下 の処理が順に実行されます。
終了処理
Ruby はスクリプトの終端に達した場合や捕捉していない例外が発生した場
合に終了します(関数 Kernel.#exit や Kernel.#abort
、メインスレッドに対する Thread.kill などは
SystemExit 例外を発生させます)。終了時には以下
の処理が順に実行されます。
(1) すべてのスレッドを Thread.kill する。
(1) Ruby の擬似シグナル SIGEXIT のハンドラが登録されていればそれを実
行する(Kernel.#trap を参照)。
(1) d:spec/control#END ブロック(END { ... -
演算子式 (18019.0)
-
演算子式 * assign * selfassign * multiassign * range * range_cond * and * or * not * cond
演算子式
* assign
* selfassign
* multiassign
* range
* range_cond
* and
* or
* not
* cond
//emlist[例][ruby]{
1+2*3/4
//}
プログラミングの利便のために一部のメソッド呼び出しと制御構造は演算子形
式をとります。Rubyには以下にあげる演算子があります。
高い ::
[]
+(単項) ! ~
**
...