1107件ヒット
[1-100件を表示]
(0.161秒)
ライブラリ
- ビルトイン (216)
- csv (44)
- digest (22)
- erb (11)
- fiddle (22)
- ipaddr (33)
- json (11)
- monitor (11)
- openssl (22)
- optparse (22)
- pathname (88)
- rake (22)
-
rexml
/ document (209) -
rubygems
/ requirement (11) -
rubygems
/ version (22) - set (14)
-
shell
/ filter (12) - stringio (11)
-
webrick
/ httpresponse (66) -
webrick
/ httpversion (11) -
webrick
/ log (22) - win32ole (132)
クラス
- BasicObject (11)
-
CSV
:: Row (22) -
CSV
:: Table (22) - Data (4)
-
Digest
:: Base (22) - ERB (11)
-
Gem
:: Requirement (11) -
Gem
:: Version (22) - IPAddr (33)
- Method (22)
- Module (33)
- Object (22)
-
OpenSSL
:: BN (22) - OptionParser (22)
- Pathname (88)
- Proc (22)
-
REXML
:: Attribute (11) -
REXML
:: CData (33) -
REXML
:: Child (22) -
REXML
:: DocType (11) -
REXML
:: Element (33) -
REXML
:: Elements (33) -
REXML
:: Entity (11) -
REXML
:: Text (33) -
Rake
:: InvocationChain (22) - Range (11)
- Set (14)
-
Shell
:: Filter (12) - StringIO (11)
- Struct (22)
- Thread (25)
-
Thread
:: Backtrace :: Location (22) -
WEBrick
:: BasicLog (22) -
WEBrick
:: HTTPResponse (66) -
WEBrick
:: HTTPVersion (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (22) -
WIN32OLE
_ PARAM (22) -
WIN32OLE
_ TYPE (33) -
WIN32OLE
_ TYPELIB (22) -
WIN32OLE
_ VARIABLE (22)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (22)
- BlockCaller (11)
- Closure (11)
- ExternalEntity (11)
- Location (11)
- MonitorMixin (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NotationDecl (11)
- String (11)
- []= (11)
- add (11)
-
add
_ element (11) -
add
_ namespace (22) - basename (11)
- body= (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - dirname (11)
-
each
_ entry (11) - entities (11)
- fatal (11)
- find (22)
- handler= (11)
- help (11)
- hexdigest (11)
-
http
_ version (11) - inspect (82)
- irb (11)
-
irb
/ completion (11) -
method
_ missing (11) - name (66)
-
next
_ sibling= (11) -
previous
_ sibling= (11) - readlink (11)
-
ruby 1
. 6 feature (11) -
set
_ trace _ func (11) - src (11)
- succ (11)
-
to
_ csv (22) -
to
_ json (11) -
to
_ str (11) -
to
_ string (22) - value (22)
- version (11)
- write (11)
- | (6)
- メソッド呼び出し(super・ブロック付き・yield) (9)
検索結果
先頭5件
-
IPAddr
# to _ s -> String (44313.0) -
文字列に変換します。
...文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string... -
IPAddr
# to _ string -> String (38518.0) -
標準的な文字列表現に変換します。
...標準的な文字列表現に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_s... -
Rake
:: InvocationChain . new(task _ name , tail) (30325.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...e::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
//}... -
Rake
:: InvocationChain # to _ s -> String (30313.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
//}... -
Digest
:: Base # to _ s -> String (27307.0) -
updateや<<によって追加した文字列に対するハッシュ値を、 ASCIIコードを使って16進数の列を示す文字列にエンコードして返します。
...updateや<<によって追加した文字列に対するハッシュ値を、
ASCIIコードを使って16進数の列を示す文字列にエンコードして返します。
返す文字列は、
MD5では32バイト長、SHA1およびRMD160では40バイト長、SHA256では64バイト長、
SH......バイト長です。
Rubyで書くと以下と同じです。
def hexdigest
digest.unpack("H*")[0]
end
例:
# MD5の場合
require 'digest/md5'
digest = Digest::MD5.new
digest.update("ruby")
p digest.hexdigest # => "58e53d1324eef6265fdb97b08ed9aadf"
@see Digest::Base#digest... -
IPAddr
# succ -> IPAddr (26212.0) -
次の IPAddr オブジェクトを返します。
...次の IPAddr オブジェクトを返します。
require 'ipaddr'
ipaddr = IPAddr.new('192.168.1.1')
p ipaddr.succ.to_s #=> "192.168.1.2"... -
Thread
:: Backtrace :: Location # to _ s -> String (24319.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 `<main>'
/... -
Gem
:: Requirement # to _ s -> String (24313.0) -
条件を表す文字列を返します。
...条件を表す文字列を返します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
p req.to_s # => "< 5.0, >= 1.9"
//}... -
Gem
:: Version # to _ s -> String (24313.0) -
バージョン情報を文字列として返します。
...バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//}... -
REXML
:: Entity # to _ s -> String (24313.0) -
実体宣言を文字列化したものを返します。
...実体宣言を文字列化したものを返します。
@see REXML::Entity#write
//emlist[][ruby]{
e = REXML::ENTITY.new("w", "wee");
p e.to_s # => "<!ENTITY w \"wee\">"
//}...