1720件ヒット
[1-100件を表示]
(0.150秒)
ライブラリ
- ビルトイン (447)
- benchmark (11)
- csv (22)
- digest (22)
- json (11)
- openssl (198)
- optparse (22)
- pathname (593)
- rake (55)
- readline (11)
-
rexml
/ document (44) -
rubygems
/ package / tar _ header (11) -
shell
/ command-processor (6) -
shell
/ filter (12) - uri (33)
-
webrick
/ httprequest (11) -
webrick
/ httpresponse (77) -
webrick
/ httputils (11) -
webrick
/ httpversion (11) - win32ole (33)
クラス
- BasicObject (11)
-
Benchmark
:: Tms (11) -
CSV
:: Table (22) -
Digest
:: Base (22) - File (11)
-
Gem
:: Package :: TarHeader (11) - Hash (88)
- MatchData (11)
- Method (22)
- Object (34)
-
OpenSSL
:: HMAC (33) -
OpenSSL
:: PKey :: DH (33) -
OpenSSL
:: PKey :: DSA (66) -
OpenSSL
:: PKey :: RSA (66) - OptionParser (22)
- Pathname (593)
-
REXML
:: CData (11) -
REXML
:: Child (22) -
REXML
:: Text (11) -
Rake
:: InvocationChain (33) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (12) - String (22)
- Symbol (120)
- Thread (25)
-
Thread
:: Backtrace :: Location (22) - Time (16)
-
URI
:: FTP (11) -
URI
:: Generic (11) -
URI
:: LDAP (11) - UnboundMethod (22)
- UncaughtThrowError (10)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (77) -
WEBrick
:: HTTPUtils :: FormData (11) -
WEBrick
:: HTTPVersion (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (22)
モジュール
オブジェクト
-
Readline
:: HISTORY (11)
キーワード
- % (11)
- =~ (11)
- InvocationChain (11)
- Location (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - [] (33)
- []= (11)
-
add
_ delegate _ command _ to _ shell (6) - append (11)
- atime (11)
- basename (11)
-
bigdecimal
/ math (11) - binread (11)
- binwrite (11)
- birthtime (10)
- body= (11)
- build (22)
- chmod (11)
- chown (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - ctime (11)
-
define
_ singleton _ method (22) - directory? (11)
- dirname (11)
-
each
_ entry (11) -
each
_ line (22) -
end
_ with? (5) - exist? (11)
- export (55)
- extname (11)
- file? (11)
- find (22)
- format (11)
- ftype (11)
- handler= (11)
- help (11)
- hex (11)
- hexdigest (22)
- hostname= (11)
-
http
_ version (11) - inspect (67)
- irb (11)
-
irb
/ ext / math-mode (4) - lchmod (22)
- lchown (11)
- length (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) - match (11)
-
method
_ missing (11) - mkdir (11)
- mkpath (11)
- mtime (11)
- name (11)
- new (33)
-
next
_ sibling= (11) - open (22)
- opendir (22)
- pipe? (11)
-
previous
_ sibling= (11) -
proc
_ to _ s (11) - read (11)
- readlines (11)
- readlink (11)
- rmdir (11)
- rmtree (11)
-
ruby 1
. 6 feature (11) -
set
_ trace _ func (11) - setgid? (11)
- setuid? (11)
- size (22)
- size? (11)
- slice (33)
- split (11)
- sprintf (11)
- sprintf フォーマット (11)
-
start
_ with? (5) - stat (11)
- sticky? (11)
- symlink? (11)
- sysopen (11)
-
to
_ csv (11) -
to
_ json (11) -
to
_ path (11) -
to
_ pem (55) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - utime (11)
-
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (11)
-
yield
_ self (12) - | (6)
検索結果
先頭5件
-
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (36201.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
irb
/ ext / math-mode (32016.0) -
irb コマンドで実行結果を Object#inspect の代わりに Object#to_s した結果で表示するためのサブライブラリです。
...irb コマンドで実行結果を Object#inspect の代わりに
Object#to_s した結果で表示するためのサブライブラリです。
conf.math_mode か IRB.conf[:MATH_MODE] に true を設定する事で使用できま
す。ただし、inspect_mode が設定されていた場合は ins... -
Rake
:: InvocationChain # to _ s -> String (27207.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
//}... -
irb (26108.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......ibrary ruby -r と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--verbose これから実行する行を表示する
--noverbose これから実行する行を表示しない (デフォルト)
--ech......rnel.#printf のように
「%」を用いた記法が使えます。
フォーマット文字列で使用可能な記法は以下の通りです。
: %N
起動しているコマンド名(IRB::Context#irb_name)
: %m
main オブジェクト (self) を to_s した文字列
: %M
main オ... -
Readline
:: HISTORY . to _ s -> "HISTORY" (24307.0) -
文字列"HISTORY"を返します。
...文字列"HISTORY"を返します。
例:
require 'readline'
Readline::HISTORY.to_s #=> "HISTORY"... -
Digest
:: Base # to _ s -> String (24207.0) -
updateや<<によって追加した文字列に対するハッシュ値を、 ASCIIコードを使って16進数の列を示す文字列にエンコードして返します。
...ハッシュ値を、
ASCIIコードを使って16進数の列を示す文字列にエンコードして返します。
返す文字列は、
MD5では32バイト長、SHA1およびRMD160では40バイト長、SHA256では64バイト長、
SHA384では96バイト長、SHA512では128バイト長で......す。
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... -
Shell
:: Filter # to _ s -> String (24207.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}... -
Thread
:: Backtrace :: Location # to _ s -> String (24207.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>'
/... -
WEBrick
:: HTTPResponse # to _ s -> String (24207.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 (24207.0) -
自身を文字列に変換して返します。
...自身を文字列に変換して返します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1"... -
WEBrick
:: HTTPRequest # to _ s -> String (24201.0) -
リクエストのヘッダとボディをまとめて文字列として返します。
リクエストのヘッダとボディをまとめて文字列として返します。