444件ヒット
[1-100件を表示]
(0.198秒)
ライブラリ
- ビルトイン (132)
- csv (24)
-
irb
/ context (36) - json (12)
- openssl (24)
- optparse (48)
- pathname (12)
- rake (24)
- rexml (12)
-
rexml
/ document (24) -
rubygems
/ version (24) - socket (24)
-
webrick
/ httpresponse (36) -
webrick
/ httpversion (12)
クラス
-
CSV
:: Table (24) - Exception (24)
-
Gem
:: Version (24) -
IRB
:: Context (36) - Object (24)
-
OpenSSL
:: Config (12) -
OpenSSL
:: X509 :: Extension (12) - OptionParser (24)
-
OptionParser
:: ParseError (24) - Pathname (12)
-
REXML
:: Declaration (12) -
REXML
:: NotationDecl (12) -
REXML
:: ParseException (12) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) - Rational (24)
-
Socket
:: Option (24) - Symbol (36)
-
Thread
:: Backtrace :: Location (24) -
WEBrick
:: HTTPResponse (36) -
WEBrick
:: HTTPVersion (12)
モジュール
キーワード
-
_ _ to _ s _ _ (12) - binread (12)
- capitalize (9)
-
content
_ length (12) -
content
_ length= (12) - data (12)
-
define
_ singleton _ method (24) - downcase (9)
- help (12)
- inspect (36)
- swapcase (9)
-
to
_ csv (12) -
to
_ json (12) - upcase (9)
- version (12)
検索結果
先頭5件
-
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (33303.0) -
'TOP' という文字列を返します。
...'TOP' という文字列を返します。... -
Rational
# to _ s -> String (27327.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 (27310.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 (27309.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 (27309.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/foo.rb:9:in `<m... -
WEBrick
:: HTTPResponse # to _ s -> String (27309.0) -
実際にクライアントに送られるデータを文字列として返します。
...列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:49 GMT
Server:
Content-Length: 4
hoge... -
WEBrick
:: HTTPVersion # to _ s -> String (27309.0) -
自身を文字列に変換して返します。
...自身を文字列に変換して返します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1"... -
OpenSSL
:: Config # to _ s -> String (27303.0) -
オブジェクトに含まれる設定情報を OpenSSL の設定ファイルの形式で 出力します。
オブジェクトに含まれる設定情報を OpenSSL の設定ファイルの形式で
出力します。 -
OpenSSL
:: X509 :: Extension # to _ s -> String (27303.0) -
拡張領域の内容を、文字列表現で返します。
拡張領域の内容を、文字列表現で返します。