6件ヒット
[1-6件を表示]
(0.147秒)
ライブラリ
- ビルトイン (1)
-
shell
/ filter (3) -
webrick
/ httpauth / authenticator (1) -
webrick
/ httpauth / htpasswd (1)
クラス
-
File
:: Stat (1) -
Shell
:: Filter (3) -
WEBrick
:: HTTPAuth :: Htpasswd (1)
モジュール
キーワード
- each (2)
-
to
_ s (1) - userdb (1)
-
world
_ readable? (1)
検索結果
先頭5件
-
Shell
:: Filter # |(filter) -> object (63694.0) -
パイプ結合を filter に対して行います。
パイプ結合を filter に対して行います。
@param filter Shell::Filter オブジェクトを指定します。
@return filter を返します。
使用例
require 'shell'
Shell.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/passwd") | wc(... -
Shell
:: Filter # to _ s -> String (18340.0) -
実行結果を文字列で返します。
実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
} -
WEBrick
:: HTTPAuth :: Htpasswd # each {|user , pass| . . . } -> Hash (18307.0) -
ユーザ名とパスワードをブロックに与えて評価します。
ユーザ名とパスワードをブロックに与えて評価します。 -
WEBrick
:: HTTPAuth :: Authenticator # userdb -> WEBrick :: HTTPAuth :: Htpasswd | WEBrick :: HTTPAuth :: Htdigest (10207.0) -
認証のためのユーザデータベースを返します。
認証のためのユーザデータベースを返します。
@see WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::Htdigest -
File
:: Stat # world _ readable? -> Integer | nil (9625.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから読めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//} -
Shell
:: Filter # each(rs = nil) -> () (9058.0) -
フィルタの一行ずつをblockに渡します。
フィルタの一行ずつをblockに渡します。
@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.record_separatorの値が使用されます。
使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}