るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.035秒)
トップページ > バージョン:2.6.0[x] > クエリ:io[x] > クエリ:to_s[x] > 種類:クラス[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

ライブラリ

キーワード

検索結果

REXML::NotationDecl (18058.0)

DTD の記法宣言を表すクラスです。

DTD の記法宣言を表すクラスです。


//emlist[][ruby]{
require 'rexml/document'

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!NOTATION type-image-svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!NOTATION type-image-gif PUBLIC "image/gif">...

Thread::Backtrace::Location (18040.0)

Ruby のフレームを表すクラスです。

...例1の実行結果:

caller_locations.rb:2:in `a'
caller_locations.rb:5:in `b'
caller_locations.rb:8:in `c'

//emlist[例2][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|
p...

Rake::InvocationChain (18022.0)

循環したタスクの呼び出しを検出するためのクラスです。

循環したタスクの呼び出しを検出するためのクラスです。

例:
a = Rake::InvocationChain::EMPTY
b = a.append('task_a').append('task_b')
p b.to_s # => "TOP => task_a => task_b"

a.append('task_a').append('task_b').append('task_a') # => 例外発生