1123件ヒット
[201-300件を表示]
(0.152秒)
別のキーワード
ライブラリ
- ビルトイン (220)
- etc (12)
-
irb
/ cmd / load (24) -
json
/ add / exception (12) - mkmf (12)
-
net
/ http (264) - optparse (24)
- pathname (399)
- rake (36)
-
rexml
/ document (60) - rubygems (12)
-
rubygems
/ custom _ require (12) - socket (24)
- win32ole (12)
クラス
- Addrinfo (24)
-
Encoding
:: Converter (12) - Exception (24)
- File (16)
-
File
:: Stat (12) - IO (48)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) -
Net
:: HTTP (216) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - OptionParser (24)
- Pathname (399)
- Proc (12)
-
REXML
:: Element (24) -
REXML
:: Elements (36) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (36) - Thread (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (12)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Kernel (36)
-
Rake
:: TaskManager (12)
キーワード
- + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
-
absolute
_ path (24) - atime (12)
-
backtrace
_ locations (24) - basename (12)
- binread (12)
-
body
_ stream (12) -
body
_ stream= (12) - children (12)
- chown (12)
- cleanpath (12)
- convpath (12)
-
create
_ makefile (12) -
create
_ rule (12) - ctime (12)
-
delete
_ all (12) - dirname (12)
- each (12)
-
each
_ child (24) -
each
_ entry (15) -
each
_ line (24) - empty? (9)
- entries (12)
- eql? (12)
- execute (24)
-
family
_ addrinfo (24) - fdatasync (12)
- fnmatch (12)
- gem (12)
- get (24)
- get2 (24)
-
get
_ text (12) - glob (16)
- head (12)
- head2 (24)
- inspect (24)
- join (12)
- load (12)
- pathconf (12)
- pathmap (12)
- post (24)
- post2 (24)
-
program
_ name (12) -
program
_ name= (12) -
read
_ body (24) - realdirpath (12)
- realpath (24)
-
relative
_ path _ from (12) - reopen (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
send
_ request (12) -
set
_ backtrace (12) -
source
_ location (12) - split (12)
- sub (24)
-
sub
_ ext (12) - text (12)
-
to
_ a (12) -
to
_ json (12) -
to
_ path (8) -
to
_ s (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # inspect -> String (12125.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Pathname
# entries -> [Pathname] (9225.0) -
self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
...にした Pathname オブジェクトの配列を返します。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
require 'pp'
pp Pathname('/usr/local').entries
# => [#<Pathname:.>,......# #<Pathname:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathname:include>,
# #<Pathname:lib>,
# #<Pathname:opt>,
# #<Pathname:sbin>,
# #<Pathname:share>,
# #<Pathname:var>]
//}
@see Dir.entries... -
Pathname
# atime -> Time (9219.0) -
File.atime(self.to_s) を渡したものと同じです。
...File.atime(self.to_s) を渡したものと同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.atime # => 2018-12-18 20:58:13 +0900
//}
@see File.atime... -
Pathname
# ctime -> Time (9219.0) -
File.ctime(self.to_s) を渡したものと同じです。
...e.ctime(self.to_s) を渡したものと同じです。
//emlist[例][ruby]{
require 'pathname'
IO.write("testfile", "test")
pathname = Pathname("testfile")
pathname.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname.chmod(0755)
pathname.ctime # => 2019-01-14 00:39:52 +0900
//}
@see File.ctime... -
Pathname
# each _ entry {|pathname| . . . } -> nil (9219.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...f.to_s) {|f| yield Pathname.new(f) } と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@s......(self.to_s) {|f| yield Pathname.new(f) } と同じです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# =......> #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# sub _ ext(replace) -> Pathname (9219.0) -
拡張子を与えられた文字列で置き換えた Pathname オブジェクトを返します。
...た Pathname オブジェクトを返します。
自身が拡張子を持たない場合は、与えられた文字列を拡張子として付加します。
@param replace 拡張子を文字列で指定します。
//emlist[例][ruby]{
require "pathname"
Pathname('/usr/bin/shutdown').sub_ext('......#<Pathname:/usr/bin/shutdown.rb>
Pathname('/home/user/test.txt').sub_ext('.pdf') # => #<Pathname:/home/user/test.pdf>
Pathname('/home/user/test').sub_ext('.pdf') # => #<Pathname:/home/user/test.pdf>
Pathname('/home/user/test.').sub_ext('.pdf') # => #<Pathname:/home/user/test..pdf>
Pathn......ame('/home/user/.test').sub_ext('.pdf') # => #<Pathname:/home/user/.test.pdf>
Pathname('/home/user/test.tar.gz').sub_ext('.xz') # => #<Pathname:/home/user/test.tar.xz>
//}... -
IRB
:: ExtendCommand :: Load # execute(file _ name , priv = nil) -> nil (9173.0) -
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。
...ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。
Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。
@param file_name ファイル名を文......字列で指定します。
@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。
@raise LoadError 読み込みに失敗した場合に発生します。... -
IRB
:: ExtendCommand :: Source # execute(file _ name) -> nil (9161.0) -
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
...irb インタプリタ上で、 Ruby スクリプト path を評価します。
path の内容を irb で一行ずつタイプしたかのように、irb 上で一行ずつ評価
されます。$" は更新されず、何度でも実行し直す事ができます。
@param file_name ファイル... -
Pathname
# fnmatch(pattern , *args) -> bool (9155.0) -
File.fnmatch(pattern, self.to_s, *args) と同じです。
...e.fnmatch(pattern, self.to_s, *args) と同じです。
@param pattern パターンを文字列で指定します。ワイルドカードとして `*', `?', `[]' が使用できま
す。Dir.glob とは違って `{}' や `**/' は使用できません。
@param args File.fnmatch を......参照してください。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
path.fnmatch("test*") # => true
path.fnmatch("TEST*") # => false
path.fnmatch("TEST*", File::FNM_CASEFOLD) # => true
//}
@see File.fnmatch...