689件ヒット
[1-100件を表示]
(0.122秒)
ライブラリ
- ビルトイン (123)
-
cgi
/ util (44) - erb (22)
-
net
/ http (22) - openssl (33)
- optparse (22)
- pathname (66)
- prettyprint (11)
- psych (55)
-
rexml
/ document (11) - shell (24)
-
shell
/ command-processor (6) -
shell
/ filter (12) - tsort (128)
- uri (22)
-
webrick
/ htmlutils (11)
クラス
- Array (19)
- Bignum (3)
- CGI (44)
- Dir (11)
- Fixnum (3)
- Integer (27)
- Method (11)
- Module (5)
-
Net
:: HTTP (22) - NilClass (11)
- OptionParser (22)
- Pathname (66)
- PrettyPrint (11)
-
Process
:: Status (11) -
Psych
:: Handler (44) -
REXML
:: Text (11) - Shell (24)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (12) - String (11)
-
URI
:: MailTo (22) - UnboundMethod (11)
モジュール
-
ERB
:: Util (22) -
OpenSSL
:: SSL (33) - TSort (128)
-
WEBrick
:: HTMLUtils (11)
キーワード
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
OP
_ NETSCAPE _ CHALLENGE _ BUG (11) -
OP
_ NETSCAPE _ REUSE _ CIPHER _ CHANGE _ BUG (11) -
OP
_ SSLEAY _ 080 _ CLIENT _ DH _ BUG (11) - Sequence (11)
- [] (16)
- alias (11)
- arity (22)
- build (11)
- cgi (11)
- chdir (6)
-
each
_ line (22) -
each
_ strongly _ connected _ component (32) -
each
_ strongly _ connected _ component _ from (42) - escape (11)
- escapeHTML (11)
-
escape
_ html (11) - foreach (18)
- format (11)
- headers (11)
-
html
_ escape (11) - mkdir (11)
- new (11)
-
on
_ head (11) -
on
_ tail (11) - open (22)
- opendir (22)
- out (6)
- pack (19)
- pack テンプレート文字列 (11)
- post (22)
- pushd (6)
- pushdir (6)
-
rb
_ scan _ args (11) -
ruby 1
. 6 feature (11) -
ruby2
_ keywords (5) - scalar (11)
-
start
_ mapping (11) -
start
_ sequence (11) -
strongly
_ connected _ components (11) - tsort (11)
-
tsort
_ each (32) - unescapeHTML (11)
-
unescape
_ html (11) - unpack (11)
- 正規表現 (11)
検索結果
先頭5件
-
Bignum
# &(other) -> Fixnum | Bignum (21312.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
1 & 1 #=> 1
2 & 3 #=> 2... -
Fixnum
# &(other) -> Fixnum | Bignum (21312.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
1 & 1 #=> 1
2 & 3 #=> 2... -
Integer
# &(other) -> Integer (21312.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
//emlist[][ruby]{
1 & 1 # => 1
2 & 3 # => 2
//}... -
ERB
:: Util . # h(s) -> String (21249.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?
//}... -
NilClass
# &(other) -> false (21224.0) -
常に false を返します。
...常に false を返します。
@param other 論理積を行なう式です
//emlist[例][ruby]{
nil & true # => false
nil & false # => false
nil & nil # => false
nil & "a" # => false
//}... -
Process
:: Status # &(other) -> Integer (18338.0) -
self.to_i & other と同じです。 このメソッドは後方互換性のためにあります。
...self.to_i & other と同じです。
このメソッドは後方互換性のためにあります。
@param other 自身との & 演算をしたい整数を指定します。... -
Pathname
# each _ line(*args) {|line| . . . } -> nil (12316.0) -
IO.foreach(self.to_s, *args, &block) と同じです。
...IO.foreach(self.to_s, *args, &block) と同じです。
//emlist[例][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}
//emlist[例 ブロックを指定][ruby]{
require "pathname"
IO.write("tes......tfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line {|f| p f }
# => "line1\n"
# => "line2,\n"
# => "line3\n"
//}
//emlist[例 limit を指定][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(4) {|f| p f }
# => "line"
# => "1\n"......# => "line"
# => "2,\n"
# => "line"
# => "3\n"
//}
//emlist[例 sep を指定][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(",") {|f| p f }
# => "line1\nline2,"
# => "\nline3\n"
//}
@see IO.foreach... -
Pathname
# each _ line(*args) -> Enumerator (12216.0) -
IO.foreach(self.to_s, *args, &block) と同じです。
...IO.foreach(self.to_s, *args, &block) と同じです。
//emlist[例][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}
//emlist[例 ブロックを指定][ruby]{
require "pathname"
IO.write("tes......tfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line {|f| p f }
# => "line1\n"
# => "line2,\n"
# => "line3\n"
//}
//emlist[例 limit を指定][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(4) {|f| p f }
# => "line"
# => "1\n"......# => "line"
# => "2,\n"
# => "line"
# => "3\n"
//}
//emlist[例 sep を指定][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(",") {|f| p f }
# => "line1\nline2,"
# => "\nline3\n"
//}
@see IO.foreach... -
CGI
. unescapeHTML(string) -> String (9354.0) -
与えられた文字列中の実体参照のうち、& > < " と数値指定がされているもの (�ffff など) を元の文字列に置換します。
...与えられた文字列中の実体参照のうち、& > < "
と数値指定がされているもの (�ffff など) を元の文字列に置換します。
@param string 文字列を指定します。
require "cgi"
p CGI.unescapeHTML("3 > 1") #=> "3 > 1"... -
CGI
. unescape _ html(string) -> String (9354.0) -
与えられた文字列中の実体参照のうち、& > < " と数値指定がされているもの (�ffff など) を元の文字列に置換します。
...与えられた文字列中の実体参照のうち、& > < "
と数値指定がされているもの (�ffff など) を元の文字列に置換します。
@param string 文字列を指定します。
require "cgi"
p CGI.unescapeHTML("3 > 1") #=> "3 > 1"... -
CGI
. escapeHTML(string) -> String (9324.0) -
与えられた文字列中の '、&、"、<、> を実体参照に置換した文字列を新しく作成し返します。
...&、"、<、> を実体参照に置換した文字列を新しく作成し返します。
@param string 文字列を指定します。
require "cgi"
p CGI.escapeHTML("3 > 1") #=> "3 > 1"
print('<script type="text/javascript">alert("警告")</script>')
p CGI.......escapeHTML('<script type="text/javascript">alert("警告")</script>')
#=> "<script type="text/javascript">alert("警告")</script>"...