るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.030秒)
トップページ > クエリ:index[x] > クエリ:escape[x]

別のキーワード

  1. matrix index
  2. matrix find_index
  3. _builtin find_index
  4. _builtin index
  5. matrix each_with_index

ライブラリ

クラス

キーワード

検索結果

CGI.escape(string) -> String (18119.0)

与えられた文字列を URL エンコードした文字列を新しく作成し返します。

...

例:
require "cgi"

p CGI.escape('@##') #=> "%40%23%23"

url = "http://www.example.com/register?url=" +
CGI.escape('http://www.example.com/index.rss')
p url
#=> "http://www.example.com/register?url=http%3A%2F%2Fwww.example.com%2Findex.rss"...

CGI.unescape(string) -> String (6106.0)

与えられた文字列を URL デコードした文字列を新しく作成し返します。

...しく作成し返します。

@param string URL エンコードされている文字列を指定します。

require "cgi"

p CGI.unescape('%40%23%23') #=> "@##"

p CGI.unescape("http%3A%2F%2Fwww.example.com%2Findex.rss")
#=> "http://www.example.com/index.rss"...

rdoc (30.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

...the name of one or more output files. If multiple
files are present, the first is used as the index.

<tt>--quiet:</tt>:: do not output the names, sizes, byte counts,
index
areas, or bit ratios of units as
they are processed.

====[a:headline] 見...
...この出力を上書
きできます。

def fred # :yields: index, position
...
yield line, address

上のようにすると、以下の出力になります。

fred() { |index, position| ... }

====[a:escape] エスケープ

マークアップは <tt> タグ内部などでバ...
...ion: を title で指定したものに上書きします。

//emlist{
# :category: Utility Methods
#
# CGI escapes +text+

def convert_string text
CGI.escapeHTML text
end
//}

title を省略した場合は、:section: を指定しなかった場合と同じように扱...