種類
- インスタンスメソッド (116)
- モジュール関数 (60)
- モジュール (24)
- 特異メソッド (24)
- クラス (12)
クラス
- ERB (140)
モジュール
-
ERB
:: DefMethod (12) -
ERB
:: Util (48)
キーワード
- DefMethod (12)
- ERB (12)
- Util (12)
-
def
_ class (12) -
def
_ erb _ method (12) -
def
_ method (12) -
def
_ module (12) - filename (12)
- filename= (12)
- h (12)
-
html
_ escape (12) - new (12)
- result (12)
-
result
_ with _ hash (8) - run (12)
-
set
_ eoutvar (12) - src (12)
- u (12)
-
url
_ encode (12) - version (12)
検索結果
先頭3件
-
ERB
:: Util . # html _ escape(s) -> String (2.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...照 & " < > にそれぞれ変更した文字列を返します
(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 . # u(s) -> String (2.0) -
文字列 s を URLエンコードした文字列を返します。
...た文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%2... -
ERB
:: Util . # url _ encode(s) -> String (2.0) -
文字列 s を URLエンコードした文字列を返します。
...た文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%2...