るりまサーチ

最速Rubyリファレンスマニュアル検索!
730件ヒット [1-100件を表示] (0.053秒)
トップページ > クエリ:IO[x] > クエリ:to_s[x]

別のキーワード

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

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

Rake::InvocationChain::EmptyInvocationChain#to_s -> String (24101.0)

'TOP' という文字列を返します。

'TOP' という文字列を返します。

Rational#to_s -> String (21125.0)

自身を人間が読みやすい形の文字列表現にして返します。

..."-17/7" のように10進数の表記を返します。

@return 有理数の表記にした文字列を返します。

//emlist[例][ruby]{
Rational(3, 4).to_s # => "3/4"
Rational(8).to_s # => "8/1"
Rational(-8, 6).to_s # => "-4/3"
Rational(0.5).to_s # => "1/2"
//}

@see Rational#inspect...

Gem::Version#to_s -> String (21107.0)

バージョン情報を文字列として返します。

...バージョン情報を文字列として返します。

//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//}...

Rake::InvocationChain#to_s -> String (21107.0)

トップレベルのタスクから自身までの依存関係を文字列として返します。

...の依存関係を文字列として返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//}...

Thread::Backtrace::Location#to_s -> String (21107.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 `new'
# path/to/fo...

絞り込み条件を変える

WEBrick::HTTPVersion#to_s -> String (21107.0)

自身を文字列に変換して返します。

...自身を文字列に変換して返します。

require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1"...

OpenSSL::X509::Extension#to_s -> String (21101.0)

拡張領域の内容を、文字列表現で返します。

拡張領域の内容を、文字列表現で返します。

REXML::Declaration#to_s -> String (21101.0)

ノードを文字列化します。

ノードを文字列化します。

REXML::NotationDecl#to_s -> String (21101.0)

self を文字列化したものを返します。

self を文字列化したものを返します。

REXML::ParseException#to_s -> String (21101.0)

例外情報を文字列化して返します。

例外情報を文字列化して返します。

絞り込み条件を変える

<< 1 2 3 ... > >>