ライブラリ
- ビルトイン (223)
-
minitest
/ unit (1) - objspace (60)
-
rdoc
/ context (12)
クラス
- Binding (7)
- Exception (12)
- Method (24)
-
MiniTest
:: Unit (1) - Module (12)
- Proc (12)
-
RDoc
:: Context (12) - Thread (24)
-
Thread
:: Backtrace :: Location (84) - UnboundMethod (12)
モジュール
- Kernel (24)
- ObjectSpace (60)
キーワード
- Location (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
absolute
_ path (12) -
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) -
backtrace
_ locations (36) -
base
_ label (12) -
caller
_ locations (24) -
const
_ source _ location (12) - inspect (18)
- label (12)
- lineno (12)
-
mark
_ locations _ array (12) -
net
/ http (12) - path (12)
-
rb
_ gc _ mark _ locations (12) -
record
_ location (12) -
rubygems
/ security (12) -
source
_ location (43) -
to
_ s (18) -
trace
_ object _ allocations (12) -
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12)
検索結果
先頭5件
-
Thread
:: Backtrace :: Location # to _ s -> String (3000.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...にした文字列を返し
ます。
//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.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo.rb:9:in... -
Method
# inspect -> String (12.0) -
self を読みやすい文字列として返します。
...ュール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo... -
Method
# to _ s -> String (12.0) -
self を読みやすい文字列として返します。
...ュール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo... -
NEWS for Ruby 2
. 0 . 0 (12.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...のソースファイル(__FILE__)のあるディレクトリ名を正規化された絶対パ スで返します。
* 追加: Kernel.#caller_locations フレーム情報の配列を返します
* 拡張: Kernel.#warn Kernel.#puts のように複数の引数を受け付けるようになり......* 追加: Thread#backtrace_locations Kernel#caller_locations に似た情報を返します
* 新規クラス: Thread::Backtrace::Location to hold backtrace location
information. These are returned by Thread#backtrace_locations and
Kernel#caller_locations
* 非互換: Thread#jo... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...safe_load like JSON.parse
https://github.com/ruby/psych/pull/333, https://github.com/ruby/psych/pull/337
* Add Psych::Handler#event_location
https://github.com/ruby/psych/pull/326
* Make frozen string literal = true
https://github.com/ruby/psych/pull/320
* P......る乱数ソースを優先するようにしました 9569
* Mutex をより小さくより速く書き直しました 13517
* lazy Proc allocation というテクニックでブロックをメソッドの引数として渡したときの性能が向上しました
14045
* TracePoint... -
NEWS for Ruby 2
. 6 . 0 (6.0) -
NEWS for Ruby 2.6.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...* Array#filter! が Array#select! の別名として追加されました。 13784
* Binding
* 新規メソッド
* Binding#source_location 追加 14230
* bindingのソースコード上の位置を __FILE__ と __LINE__ の二要素配列として返します。
従... -
NEWS for Ruby 2
. 7 . 0 (6.0) -
NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...情報が増えました。 14145
* Module
* 新規メソッド
* 定数が定義された場所を取得するModule#const_source_location
メソッドが追加されました。 10771
* 通常の引数分解でキーワード引数を渡すようにメソッドに印を... -
net
/ http (6.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...= Net::HTTP.get_response(URI.parse(uri_str))
case response
when Net::HTTPSuccess
response
when Net::HTTPRedirection
fetch(response['location'], limit - 1)
else
response.value
end
end
print fetch('http://www.example.org')
//}
より詳しくは Net::HTTPResponse、 Net::HTTPSu... -
rubygems
/ security (6.0) -
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
...には、"alf@seattle" は彼の gemspec を以下のように変更する必要があります。
# signing key (still kept in an undisclosed location!)
s.signing_key = '/mnt/floppy/alf-private_key.pem'
# certificate chain (includes the issuer certificate now too)
s.cert_chain = ['/hom...