72件ヒット
[1-72件を表示]
(0.013秒)
キーワード
- copy (12)
- cp (12)
- h (12)
-
html
_ escape (12) - u (12)
-
url
_ encode (12)
検索結果
先頭5件
-
FileUtils
. # copy(src , dest , options = {}) -> () (13.0) -
ファイル src を dest にコピーします。
...つ、dest がディレクトリでない場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cp 'eval.c', 'eval.c.org'
FileUtils.cp(['cgi.rb', 'complex.rb', 'date.rb'], '/usr/lib/ruby/1.8')
FileUtils.cp(%w(cgi.rb complex.rb date.rb), '/usr/lib/ruby/1.8', verbose: true)
//}... -
FileUtils
. # cp(src , dest , options = {}) -> () (13.0) -
ファイル src を dest にコピーします。
...つ、dest がディレクトリでない場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cp 'eval.c', 'eval.c.org'
FileUtils.cp(['cgi.rb', 'complex.rb', 'date.rb'], '/usr/lib/ruby/1.8')
FileUtils.cp(%w(cgi.rb complex.rb date.rb), '/usr/lib/ruby/1.8', verbose: true)
//}... -
ERB
:: Util . # h(s) -> String (7.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts htm... -
ERB
:: Util . # html _ escape(s) -> String (7.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts htm... -
ERB
:: Util . # u(s) -> String (7.0) -
文字列 s を URLエンコードした文字列を返します。
...ます。
文字列 s 中に含まれる 2バイト文字や半角スペースについて URL エンコードを行った文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encod... -
ERB
:: Util . # url _ encode(s) -> String (7.0) -
文字列 s を URLエンコードした文字列を返します。
...ます。
文字列 s 中に含まれる 2バイト文字や半角スペースについて URL エンコードを行った文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encod...