るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

クラス

モジュール

検索結果

<< 1 2 3 ... > >>

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 中に含まれる &"<> を、実体参照 &amp; &quot; &lt; &gt; にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。

@param s HTMLエスケープを行う文字列

//emlist[例...
...][ruby]{
require "erb"
i
nclude ERB::Util

puts html_escape("is a > 0 & a < 10?")
# is a &gt; 0 &amp; a &lt; 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"

I
O.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}

//emlist[例 ブロックを指定][ruby]{
require "pathname"

I
O.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"

I
O.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"

I
O.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"

I
O.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}

//emlist[例 ブロックを指定][ruby]{
require "pathname"

I
O.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"

I
O.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"

I
O.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)

与えられた文字列中の実体参照のうち、&amp; &gt; &lt; &quot; と数値指定がされているもの (&#0ffff など) を元の文字列に置換します。

...与えられた文字列中の実体参照のうち、&amp; &gt; &lt; &quot;
と数値指定がされているもの (&#0ffff など) を元の文字列に置換します。

@param string 文字列を指定します。

require "cgi"

p CGI.unescapeHTML("3 &gt; 1") #=> "3 > 1"...

CGI.unescape_html(string) -> String (9354.0)

与えられた文字列中の実体参照のうち、&amp; &gt; &lt; &quot; と数値指定がされているもの (&#0ffff など) を元の文字列に置換します。

...与えられた文字列中の実体参照のうち、&amp; &gt; &lt; &quot;
と数値指定がされているもの (&#0ffff など) を元の文字列に置換します。

@param string 文字列を指定します。

require "cgi"

p CGI.unescapeHTML("3 &gt; 1") #=> "3 > 1"...

絞り込み条件を変える

CGI.escapeHTML(string) -> String (9324.0)

与えられた文字列中の '、&、"、<、> を実体参照に置換した文字列を新しく作成し返します。

...&、"、<、> を実体参照に置換した文字列を新しく作成し返します。

@param string 文字列を指定します。

require "cgi"

p CGI.escapeHTML("3 > 1") #=> "3 &gt; 1"

print('<script type="text/javascript">alert("警告")</script>')

p CGI....
...escapeHTML('<script type="text/javascript">alert("警告")</script>')
#=> "&lt;script type=&quot;text/javascript&quot;&gt;alert(&quot;警告&quot;)&lt;/script&gt;"...
<< 1 2 3 ... > >>