6174件ヒット
[1-100件を表示]
(0.164秒)
ライブラリ
- ビルトイン (1568)
-
cgi
/ core (33) -
cgi
/ session (11) - csv (99)
- digest (22)
- etc (616)
- fileutils (55)
- irb (11)
-
irb
/ cmd / load (22) -
irb
/ context (11) -
irb
/ input-method (11) -
irb
/ magic-file (22) -
json
/ add / exception (11) - logger (11)
- mkmf (88)
-
net
/ ftp (36) -
net
/ http (517) -
net
/ pop (33) - open-uri (22)
- openssl (77)
- optparse (11)
- pathname (831)
- pstore (11)
- rake (99)
-
rake
/ packagetask (11) -
rake
/ testtask (11) -
rexml
/ document (132) - rubygems (44)
-
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ commands / which _ command (22) -
rubygems
/ config _ file (11) -
rubygems
/ custom _ require (11) -
rubygems
/ defaults (11) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ format (33) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ installer (11) -
rubygems
/ old _ format (33) -
rubygems
/ remote _ fetcher (33) -
rubygems
/ security (11) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (55) -
rubygems
/ uninstaller (11) -
rubygems
/ validator (22) - shell (84)
-
shell
/ command-processor (48) -
shell
/ filter (48) - socket (308)
- tempfile (110)
- uri (242)
-
webrick
/ httpauth / htdigest (22) -
webrick
/ httpauth / htgroup (22) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (22) -
webrick
/ httpserver (22) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httputils (11) -
webrick
/ ssl (11) -
win32
/ resolv (11) - win32ole (11)
- zlib (11)
クラス
-
ARGF
. class (22) - Addrinfo (44)
- CGI (11)
-
CGI
:: Cookie (22) -
CGI
:: Session (11) - CSV (99)
-
Digest
:: Base (22) - Dir (325)
-
Encoding
:: Converter (55) - Exception (22)
- File (473)
-
File
:: Stat (33) -
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: Commands :: WhichCommand (22) -
Gem
:: ConfigFile (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Format (33) -
Gem
:: GemPathSearcher (66) -
Gem
:: Installer (11) -
Gem
:: OldFormat (33) -
Gem
:: RemoteFetcher (33) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (55) -
Gem
:: Uninstaller (11) -
Gem
:: Validator (22) - IO (221)
-
IRB
:: Context (11) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: FileInputMethod (11) - LoadError (11)
- Logger (11)
-
Net
:: FTP (27) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (462) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPRequest (11) -
Net
:: HTTPResponse (11) -
Net
:: POP3 (33) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Store (11) - OptionParser (11)
- PStore (11)
- Pathname (831)
- Proc (11)
-
RDoc
:: Options (44) -
REXML
:: Attribute (11) -
REXML
:: Element (44) -
REXML
:: Elements (44) -
REXML
:: XPath (33) -
Rake
:: Application (11) -
Rake
:: FileList (11) -
Rake
:: PackageTask (11) -
Rake
:: TestTask (11) -
RubyVM
:: InstructionSequence (77) - Shell (84)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (48) - Socket (121)
- String (44)
- SyntaxError (2)
- Tempfile (110)
- Thread (22)
-
Thread
:: Backtrace :: Location (44) - TracePoint (22)
- UNIXServer (44)
- UNIXSocket (55)
-
URI
:: FTP (44) -
URI
:: Generic (99) -
URI
:: HTTP (44) -
URI
:: LDAP (11) -
URI
:: MailTo (11) -
WEBrick
:: Cookie (33) -
WEBrick
:: HTTPAuth :: Htdigest (22) -
WEBrick
:: HTTPAuth :: Htgroup (22) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPServer (11) -
WEBrick
:: HTTPServer :: MountTable (11) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WIN32OLE
_ TYPELIB (11) -
Win32
:: Resolv (11) -
Zlib
:: GzipFile (11)
モジュール
-
CGI
:: QueryExtension (22) - Etc (605)
-
File
:: Constants (11) - FileTest (22)
- FileUtils (66)
- Gem (33)
-
Gem
:: QuickLoader (11) - IRB (11)
- Kernel (308)
-
OpenSSL
:: X509 (55) - OpenURI (22)
- Rake (22)
-
RubyVM
:: AbstractSyntaxTree (8) -
Socket
:: Constants (44) - URI (33)
-
WEBrick
:: Config (11) -
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (11)
-
IRB
:: MagicFile (22)
キーワード
-
$ -I (11) -
$ : (11) -
$ LOAD _ PATH (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (22)
-
CS
_ GNU _ LIBC _ VERSION (11) -
CS
_ GNU _ LIBPTHREAD _ VERSION (11) -
CS
_ PATH (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ CFLAGS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ LIBS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ CFLAGS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ LIBS (11) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ CFLAGS (11) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ LIBS (11) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ CFLAGS (11) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ LIBS (11) -
CS
_ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ CFLAGS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ LIBS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ CFLAGS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ LIBS (11) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ CFLAGS (11) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ LIBS (11) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ CFLAGS (11) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ LIBS (11) -
CS
_ POSIX _ V7 _ THREADS _ CFLAGS (11) -
CS
_ POSIX _ V7 _ THREADS _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS (11) -
CS
_ V6 _ ENV (11) -
CS
_ V7 _ ENV (11) - DOSISH 対応 (11)
-
FNM
_ PATHNAME (11) - GemPaths (11)
-
IPV6
_ PATHMTU (22) -
IPV6
_ RECVPATHMTU (22) -
IP
_ MTU _ DISCOVER (22) -
MSG
_ CONFIRM (22) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) - Options (11)
-
PATH
_ SEPARATOR (22) -
PC
_ 2 _ SYMLINKS (11) -
PC
_ ALLOC _ SIZE _ MIN (11) -
PC
_ ASYNC _ IO (11) -
PC
_ CHOWN _ RESTRICTED (11) -
PC
_ FILESIZEBITS (11) -
PC
_ LINK _ MAX (11) -
PC
_ MAX _ CANON (11) -
PC
_ MAX _ INPUT (11) -
PC
_ NAME _ MAX (11) -
PC
_ NO _ TRUNC (11) -
PC
_ PATH _ MAX (11) -
PC
_ PIPE _ BUF (11) -
PC
_ PRIO _ IO (11) -
PC
_ REC _ INCR _ XFER _ SIZE (11) -
PC
_ REC _ MAX _ XFER _ SIZE (11) -
PC
_ REC _ MIN _ XFER _ SIZE (11) -
PC
_ REC _ XFER _ ALIGN (11) -
PC
_ SYMLINK _ MAX (11) -
PC
_ SYNC _ IO (11) -
PC
_ TIMESTAMP _ RESOLUTION (11) -
PC
_ VDISABLE (11) - Rubyの起動 (11)
- Ruby用語集 (11)
- SSL (11)
-
V
_ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT (11) -
V
_ ERR _ PATH _ LENGTH _ EXCEEDED (11) -
V
_ ERR _ SELF _ SIGNED _ CERT _ IN _ CHAIN (11) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT (11) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT _ LOCALLY (11) - [] (11)
-
absolute
_ path (33) -
absolute
_ path? (5) - application (11)
- ascend (11)
- atime (11)
-
attribute
_ alias _ singular (11) -
backtrace
_ locations (22) - basename (11)
- binread (22)
- binwrite (22)
- birthtime (10)
- blockdev? (11)
-
body
_ stream (11) -
body
_ stream= (11) - build (99)
- build2 (22)
-
ca
_ path (22) -
caller
_ locations (22) - cd (6)
- certs (11)
- cgi (11)
- chardev? (11)
- chdir (50)
- children (25)
- chmod (11)
- chown (11)
- chroot (11)
- cleanpath (11)
-
clear
_ paths (11) - close (11)
- close! (11)
- collect (11)
- compile (11)
-
compile
_ file (11) - component (11)
- confstr (11)
- convpath (11)
- copy (11)
- create (22)
-
create
_ makefile (11) - ctime (11)
-
def
_ system _ command (6) -
default
_ path (11) - delete (44)
- descend (11)
-
dir
_ config (11) - directory? (22)
- dirname (11)
- each (22)
-
each
_ child (50) -
each
_ element (11) -
each
_ entry (11) -
each
_ filename (11) -
each
_ line (22) - empty? (16)
-
enable
_ ssl (22) - entries (33)
-
escape
_ path (11) - exec (44)
- executable? (11)
-
executable
_ real? (11) - execute (22)
- exist? (22)
- exists? (9)
- extname (11)
-
family
_ addrinfo (22) - fdatasync (11)
-
fetch
_ path (11) - file (22)
- file? (22)
- filename (11)
- find (33)
-
find
_ all (11) -
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ paths (11) - first (11)
- flush (33)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (2) - foreach (95)
- formatter (11)
-
from
_ file _ by _ path (22) -
from
_ io (22) - ftype (11)
-
full
_ gem _ path (11) - gem (11)
-
gem
_ path (22) -
gem
_ paths (11) - get (44)
- get2 (22)
-
get
_ file _ uri _ path (11) -
get
_ hosts _ path (11) -
get
_ path (11) -
get
_ print (22) -
get
_ response (22) -
get
_ text (11) - glob (29)
- grpowned? (11)
- hash (11)
- head (11)
- head2 (22)
- hierarchical? (11)
- home (22)
-
init
_ gemspecs (11) - inject (11)
- inspect (33)
-
install
_ system _ commands (6) -
installation
_ path (11) -
installed
_ spec _ directories (11) - irb (11)
-
irb
_ path (11) - join (33)
- lchmod (11)
- lchown (11)
-
lib
_ dirs _ for (11) - libpathflag (11)
- libs (11)
-
link
_ command (11) - lock (11)
- logger (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) - match (11)
-
matching
_ file? (11) -
matching
_ files (11) - mkcol (11)
- mkdir (40)
- mkpath (22)
- mlsd (18)
- mlst (9)
- mountpoint? (11)
- move (11)
- mtime (11)
- new (299)
- new2 (11)
- open (242)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) - opendir (22)
-
original
_ dir (22) - owned? (11)
-
pack
_ sockaddr _ un (11) -
package
_ dir _ path (11) -
page
_ dir (11) - parse (22)
-
parse
_ file (8) - patch (22)
-
path
_ info (22) -
path
_ ok? (11) -
path
_ translated (11) -
path
_ warning (11) - pathconf (11)
- pathmap (22)
-
pathmap
_ explode (11) -
pathmap
_ partial (11) -
pathmap
_ replace (11) - pathname (9)
- pipe? (22)
- post (22)
- post2 (22)
-
program
_ name (11) - propfind (11)
- proppatch (11)
- pushd (6)
- pushdir (6)
- put (11)
- put2 (22)
- rdoc (11)
- read (55)
-
read
_ body (11) - readable? (11)
-
readable
_ real? (11) - readlines (55)
- readlink (40)
- realdirpath (22)
- realpath (33)
- relative? (11)
-
relative
_ path _ from (11) -
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) -
remove
_ leading _ dot _ dir (11) - reopen (33)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) -
request
_ uri (11) - require (11)
-
require
_ path (11) -
require
_ paths (11) -
require
_ relative (11) - rmdir (40)
- rmtree (11)
- root (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / mirror _ command (11) -
rubygems
/ security (11) - scan (11)
-
search
_ convpath (11) - select (11)
-
send
_ request (11) -
set
_ backtrace (11) -
set
_ default _ paths (11) - setgid? (22)
- setuid? (22)
- size (22)
- size? (33)
-
sockaddr
_ un (11) - socket? (11)
-
source
_ index (11) -
source
_ location (11) - spawn (44)
-
spec
_ path (11) - split (51)
-
split
_ all (11) - start (11)
- stat (11)
-
static
_ path (11) -
static
_ path= (11) - sticky? (22)
- symlink? (22)
- sysopen (22)
- system (44)
- table (11)
-
test
/ unit (1) - text (11)
-
to
_ a (22) -
to
_ json (11) -
to
_ path (35) -
to
_ s (22) - trace (11)
- truncate (17)
-
trusted
_ cert _ path (11) -
try
_ file (11) - unix (33)
-
unix
_ path (11) -
unix
_ server _ loop (11) -
unix
_ server _ socket (22) - unlink (51)
- unlock (11)
- utime (11)
-
verify
_ gem _ file (11) -
webrick
/ cgi (11) -
world
_ readable? (22) -
world
_ writable? (33) - writable? (22)
-
writable
_ real? (22) - write (33)
- xpath (22)
- zero? (11)
- セキュリティモデル (11)
- 変数と定数 (11)
検索結果
先頭5件
-
irb (26378.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......す。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマンドラインオプション
irb [options] file_name opts
options:
-f ~/.irbrc を読......サブ irb を停止します。
n は以下のいずれかの値で指定します。
//emlist{
* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj)
//}
: source(path)
: irb_source(path)... -
File
. path(filename) -> String (21377.0) -
指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。
...filename が文字列でない場合は、to_path メソッドを呼びます。
@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
class MyPath
def initialize(path)
@path......= path
end
def to_path
File.absolute_path(@path)
end
end
File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}... -
URI
:: Generic # path -> String | nil (21347.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
... path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> nil
p URI......('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
IO
# path -> String | nil (21326.0) -
IO に関連付けられたパスを返します。IO がパスに関連付けられていない場合は nil を返します。
...
IO に関連付けられたパスを返します。IO がパスに関連付けられていない場合は nil を返します。
このメソッドが返すパスがファイルシステム上に存在することは保証されていません。
//emlist[例][ruby]{
p STDIN.path......# => "<STDIN>"
p IO.new(IO.sysopen("/")).path # => "/"
p IO.new(IO.sysopen("/"), path: "foo").path # => "foo"
//}... -
Net
:: HTTPGenericRequest # path -> String (21323.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
File
# path -> String (21320.0) -
オープン時に使用したパスを文字列で返します。
...、
File::Constants::TMPFILEオプション付きで作成されていたりする場合です。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::R......DWR | File::TMPFILE){|f| f.path } #=> "/tmp"
//}......raise IOError TMPFILE File::Constants::TMPFILEオプション付きで作成されている場合に発生します。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.......open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } # IOError: File is unnamed (TMPFILE?)
//}... -
RubyVM
:: InstructionSequence # path -> String (21319.0) -
self が表す命令シーケンスの相対パスを返します。
...いた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場......合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Zlib
:: GzipFile # path -> String (21317.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。... -
Dir
# path -> String (21314.0) -
オープンしているディレクトリのパス名を文字列で返します。
...オープンしているディレクトリのパス名を文字列で返します。
//emlist[例][ruby]{
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end
//}... -
Tempfile
# path -> String | nil (21313.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil...