280件ヒット
[1-100件を表示]
(0.070秒)
別のキーワード
種類
- インスタンスメソッド (176)
- 文書 (49)
- ライブラリ (22)
- クラス (22)
- 特異メソッド (11)
ライブラリ
- ビルトイン (33)
- csv (22)
- optparse (22)
- rake (22)
-
rexml
/ document (22) -
rubygems
/ version (22) - stringio (11)
-
webrick
/ httpresponse (44) -
webrick
/ httpversion (11)
クラス
-
CSV
:: Table (22) -
Gem
:: Version (22) - OptionParser (22)
-
REXML
:: Child (11) -
Rake
:: InvocationChain (22) - StringIO (11)
-
Thread
:: Backtrace :: Location (22) -
WEBrick
:: HTTPResponse (44) -
WEBrick
:: HTTPVersion (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - Location (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NotationDecl (11)
- body= (11)
-
content
_ length (11) -
content
_ length= (11) - help (11)
-
http
_ version (11) - inspect (11)
-
irb
/ completion (11) -
previous
_ sibling= (11) - rss (11)
-
ruby 1
. 6 feature (11) -
to
_ csv (11) - version (11)
- write (11)
検索結果
先頭5件
-
Rake
:: InvocationChain . new(task _ name , tail) (24125.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
@param task_name タスク名を指定します。
@param tail 一つ前の Rake::InvocationChain を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default:......:test_rake_app
task :test_rake_app do
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}... -
Thread
:: Backtrace :: Location # to _ s -> String (24119.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...mlist[例][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 `<main>'
//}... -
Gem
:: Version # to _ s -> String (24113.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 (24113.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
//}... -
WEBrick
:: HTTPVersion # to _ s -> String (24113.0) -
自身を文字列に変換して返します。
...自身を文字列に変換して返します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1"... -
OptionParser
# to _ s -> String (21107.0) -
サマリの文字列を返します。
...例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v, --[no-]verbose... -
CSV
:: Table # to _ s(options = Hash . new) -> String (15409.0) -
CSV の文字列に変換して返します。
...ます。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # =>... -
Gem
:: Version # version -> String (15213.0) -
バージョン情報を文字列として返します。
...バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//}... -
WEBrick
:: HTTPResponse # http _ version -> WEBrick :: HTTPVersion (12412.0) -
レスポンスの HTTP のバージョンを表す WEBrick::HTTPVersion オブジェクトを返します。
...ンを表す WEBrick::HTTPVersion オブジェクトを返します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
p res.http_version.class #=> WEBrick::HTTPVersion
p res.http_version.to_s... -
REXML
:: Child # previous _ sibling=(other) (12224.0) -
other を self の前の隣接ノードとします。
...other を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}...