324件ヒット
[1-100件を表示]
(0.075秒)
ライブラリ
- erb (24)
- fileutils (156)
-
webrick
/ htmlutils (12) -
webrick
/ httputils (132)
モジュール
-
ERB
:: Util (24) - FileUtils (156)
-
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPUtils (132)
キーワード
- chdir (24)
- chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) - dequote (12)
- escape (24)
- escape8bit (12)
-
escape
_ path (12) -
html
_ escape (12) -
load
_ mime _ types (12) -
mime
_ type (12) - mkpath (12)
-
parse
_ header (12) -
parse
_ range _ header (12) - quote (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) -
split
_ header _ value (12) - touch (12)
- unescape (12)
- uptodate? (12)
検索結果
先頭5件
-
ERB
:: Util . # h(s) -> String (21108.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...文字列 s を HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//......emlist[例][ruby]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
ERB
:: Util . # html _ escape(s) -> String (9108.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...文字列 s を HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//......emlist[例][ruby]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
FileUtils
. # chmod(mode , list , options = {}) -> Array (9101.0) -
ファイル list のパーミッションを mode に変更します。
...leUtils#options
@return list を配列として返します。
//emlist[][ruby]{
# Absolute mode
require 'fileutils'
FileUtils.chmod(0644, %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod(0755, 'somecommand')
FileUtils.chmod(0755, '/usr/bin/ruby', verbose: true)
# Symbolic mode
require 'fileutils'......FileUtils.chmod("u=wr,go=rr", %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod("u=wrx,go=rx", 'somecommand')
FileUtils.chmod("u=wrx,go=rx", '/usr/bin/ruby', verbose: true)
//}
symbolic mode では以下の指定を 操作対象 演算子 権限 の順番で指定します。
操作対象(複数... -
FileUtils
. # chmod _ R(mode , list , options = {}) -> Array (9101.0) -
ファイル list のパーミッションを再帰的に mode へ変更します。
...de へ変更します。
@param mode パーミッションを8進数(absolute mode)か文字列(symbolic
mode)で指定します(FileUtils.#chmod 参照)。
@param list ファイルのリストを指定します。対象のファイルが一つの場合は文字列でも指定可能で......二つ以上指定する場合は配列で指定します。
@param options :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chmod_R(0700, '/tmp/removing')
//}... -
FileUtils
. # chown(user , group , list , options = {}) -> Array (9101.0) -
ファイル list の所有ユーザと所有グループを user と group に変更します。
...ptions :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
//}... -
FileUtils
. # chown _ R(user , group , list , options = {}) -> Array (9101.0) -
list 以下のファイルの所有ユーザと所有グループを user と group へ再帰的に変更します。
...c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
require 'fileutils'
FileUtils.chown_R 'www', 'www', '/var/www/htdocs'......FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', verbose: true
//}... -
FileUtils
. # touch(list , options = {}) -> () (9101.0) -
list で指定されたファイルの最終変更時刻 (mtime) と アクセス時刻 (atime) を変更します。
...場合は配列で指定します。
@param options :mtime, :nocreate, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.touch('timestamp')
FileUtils.touch('timestamp', mtime: Time.now)
FileUtils.touch(Dir.glob('*.c'))
//}... -
WEBrick
:: HTTPUtils . # escape _ path(str) -> String (9101.0) -
与えられた文字列を数値参照文字列に変換します。
...規表現を使用して変換します。
num = '0123456789'
lowalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n
@param str 文字列を... -
WEBrick
:: HTTPUtils . # parse _ header(raw) -> Hash (9101.0) -
HTTP ヘッダをパースして結果をハッシュに格納して返します。
...
HTTP ヘッダをパースして結果をハッシュに格納して返します。
@param raw 生のヘッダを表す文字列を指定します。...