1426件ヒット
[1-100件を表示]
(0.058秒)
ライブラリ
- ビルトイン (280)
-
cgi
/ html (99) - csv (11)
- etc (11)
- json (66)
- logger (42)
-
net
/ ftp (71) -
net
/ http (11) - openssl (22)
- pathname (291)
- psych (22)
- rake (33)
-
rdoc
/ context (11) -
rdoc
/ top _ level (11) -
rexml
/ document (143) -
rexml
/ sax2listener (22) -
rexml
/ streamlistener (11) -
rinda
/ rinda (11) -
ripper
/ lexer (7) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ source _ index (22) -
rubygems
/ specification (11) - socket (11)
- tempfile (20)
-
webrick
/ httputils (44) -
win32
/ registry (11)
クラス
- Addrinfo (11)
- CSV (11)
- Data (2)
- Dir (33)
- File (33)
-
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: SourceIndex (22) -
Gem
:: Specification (11) - IO (11)
- Logger (41)
-
Logger
:: Application (1) - MatchData (92)
- Module (85)
-
Net
:: FTP (71) -
Net
:: HTTP (11) -
OpenSSL
:: Digest (11) -
OpenSSL
:: PKCS12 (11) - Pathname (291)
-
RDoc
:: Context (11) -
RDoc
:: Options (11) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (33) -
REXML
:: DocType (11) -
REXML
:: Element (22) -
REXML
:: Entity (11) -
REXML
:: XPath (33) - Ripper (7)
- Tempfile (20)
-
WEBrick
:: HTTPUtils :: FormData (44) -
Win32
:: Registry (11)
モジュール
-
CGI
:: HtmlExtension (99) - JSON (44)
-
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (11)
- Psych (22)
-
REXML
:: SAX2Listener (22) -
REXML
:: StreamListener (11) - Rake (22)
-
Rake
:: TaskManager (11) -
RubyVM
:: AbstractSyntaxTree (8)
オブジェクト
- main (16)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
-
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) - NotationDecl (11)
- Template (11)
- [] (66)
-
absolute
_ path (11) - application (11)
- application= (11)
- ascend (22)
- attlistdecl (11)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (8) - attribute (11)
- autoload (22)
- binread (11)
- binwrite (11)
- byteoffset (4)
- checkbox (11)
- cleanpath (11)
-
const
_ source _ location (5) - create (31)
-
deconstruct
_ keys (2) - descend (22)
- each (22)
-
each
_ element _ with _ attribute (11) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (22) -
enhance
_ with _ matching _ rule (11) - fatal (22)
-
file
_ field (11) - filename (11)
- filename= (11)
- find (22)
-
find
_ enclosing _ module _ named (11) -
find
_ local _ symbol (11) -
find
_ name (11) - first (11)
- foreach (11)
- formatter (11)
- generate (11)
- get (11)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ path (11) - getbinaryfile (11)
- glob (58)
- hidden (11)
- lex (7)
- load (11)
-
load
_ specification (11) - match (11)
- mkpath (11)
- mlsd (18)
- mlst (9)
- name= (11)
-
named
_ captures (11) - names (11)
- namespace (11)
- ndata (11)
- new (31)
- notation (11)
- notationdecl (11)
- offset (22)
- opendir (22)
-
page
_ dir (11) - parse (11)
-
parse
_ file (8) -
password
_ field (11) - pathconf (11)
-
pipe
_ open (11) -
pretty
_ generate (11) -
pretty
_ unparse (11) - private (32)
- put (11)
- putbinaryfile (11)
- read (11)
- realdirpath (22)
- realpath (33)
-
required
_ attribute (11) - reset (11)
- rmtree (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (5) -
send
_ request (11) - specification (11)
-
start
_ element (11) - submit (11)
-
text
_ field (11) -
to
_ json (22) - unparse (11)
- write (22)
- 正規表現 (11)
検索結果
先頭5件
-
WEBrick
:: HTTPUtils :: FormData # name -> String | nil (21231.0) -
フォームデータの name 属性を文字列で表すアクセサです。
...フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCG... -
Pathname
# realpath(basedir = nil) -> Pathname (12419.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# realdirpath(basedir = nil) -> Pathname (12401.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...athname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathname......"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT
/....../}
@see Pathname#realpath... -
Pathname
# realpath -> Pathname (12319.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (12318.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
cleanpath は、実際にファイルシステムを参照することなく、文字列操作
だけで処理を行います。
@param consider_symlink 真ならパス要素にシンボリック......uby]{
require "pathname"
path = Pathname.new("//.././../")
path # => #<Pathname://.././../>
path.cleanpath # => #<Pathname:/>
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tm......p/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
path.cleanpath # => #<Pathname:bar/bar>
path.cleanpath(true) # => #<Pathname:bar/foo/../bar>
//}... -
Pathname
# each _ filename {|v| . . . } -> nil (12201.0) -
self のパス名要素毎にブロックを実行します。
...self のパス名要素毎にブロックを実行します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/foo/../bar").each_filename {|v| p v}
# => "foo"
# ".."
# "bar"
//}... -
Pathname
# mkpath -> nil (12201.0) -
FileUtils.mkpath(self.to_s) と同じです。
...FileUtils.mkpath(self.to_s) と同じです。
@see FileUtils.#mkpath... -
MatchData
# named _ captures -> Hash (12106.0) -
名前付きキャプチャをHashで返します。
.../.match("01")
m.named_captures # => {"a" => "0", "b" => "1"}
m = /(?<a>.)(?<b>.)?/.match("0")
m.named_captures # => {"a" => "0", "b" => nil}
m = /(?<a>.)(?<a>.)/.match("01")
m.named_captures # => {"a" => "1"}
m = /(?<a>x)|(?<a>y)/.match("x")
m.named_captures # => {"a" => "x"}
//}
@see MatchData#... -
MatchData
# names -> [String] (12106.0) -
名前付きキャプチャの名前を文字列配列で返します。
...前を文字列配列で返します。
self.regexp.names と同じです。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names
# => ["foo", "bar", "baz"]
m = /(?<x>.)(?<y>.)?/.match("a") # => #<MatchData "a" x:"a" y:nil>
m.names # => ["x", "y"]
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9548.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......ます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root......ot/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}...