236件ヒット
[1-100件を表示]
(0.069秒)
別のキーワード
種類
- インスタンスメソッド (103)
- ライブラリ (60)
- 特異メソッド (36)
- 文書 (25)
- モジュール関数 (12)
クラス
- Binding (7)
-
Encoding
:: Converter (48) -
JSON
:: Parser (12) - Method (24)
- Module (12)
- Proc (12)
- Regexp (12)
- UnboundMethod (12)
モジュール
- ObjectSpace (12)
キーワード
-
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
allocation
_ sourcefile (12) -
const
_ source _ location (12) - convert (12)
- inspect (6)
- irb (12)
- new (36)
- rdoc (12)
- rss (12)
-
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / search _ command (12) -
source
_ location (43) -
to
_ s (6) - 多言語化 (12)
検索結果
先頭5件
-
rubygems
/ commands / search _ command (26030.0) -
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
...指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
Usage: gem search [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION Specify version of gem to search......zation (default 1000)
--source URL Gem パッケージのリモートリポジトリの URL を指定します
--[no-]http-proxy [URL] リモートの操作に HTTP プロクシを使用します
-u, --[no-]update-sources ローカルソースキ......レースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
STRING 検索したい Gem パッケージ名の一部を指定します
Summary:
STRING を含む全ての Gem パッケージ名... -
rubygems
/ commands / list _ command (26024.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
...Gem パッケージの名前を前方一致で検索するためのライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力しま......zation (default 1000)
--source URL Gem パッケージのリモートリポジトリの URL を指定します
--[no-]http-proxy [URL] リモートの操作に HTTP プロクシを使用します
-u, --[no-]update-sources ローカルソースキ......--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
STRING 探したい Gem の名前を前方一致で指定します
Summary:
指定... -
JSON
:: Parser # source -> String (18214.0) -
現在のソースのコピーを返します。
...現在のソースのコピーを返します。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
#... -
Regexp
# source -> String (18214.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (6286.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義され......す。
//emlist[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end
module M # line 6
C3 = 3
end
class B < A # line 10
include M
C4 = 4
end
class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end
p B.const_source_location('C4')......# => ["test.rb", 12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]
p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない
p A.const_source_location('C2') # => [... -
Proc
# source _ location -> [String , Integer] | nil (6244.0) -
ソースコードのファイル名と行番号を配列で返します。
...の手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/......to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location # => nil
//}
@see Method#source_location... -
UnboundMethod
# source _ location -> [String , Integer] | nil (6244.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]
//}
@see Proc#source_location, Method#source_location... -
Method
# source _ location -> [String , Integer] | nil (6232.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_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//}... -
Binding
# source _ location -> [String , Integer] (6230.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...