るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

irb (26342.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
i
rb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby さえ知っていれば irb を使うのは簡単です。
i
rb コマンドを実行すると、以下のようなプロン...
...す。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。

=== irb のコマンドラインオプション

i
rb [options] file_name opts
options:
-
f ~/.irbrc を読...
...ブジェクトに
I
RB::Context オブジェクトを渡して実行します。
これによってサブ irb の設定をまとめて設定することができます。

以下に例を示します。

$ irb
i
rb(main):001:0> IRB.conf[:IRB_RC] = lambda {|conf| conf.prompt_i = "> " }
=> #<Proc...

Bignum#-(other) -> Fixnum | Bignum | Float (21402.0)

算術演算子。差を計算します。

算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

Fixnum#-(other) -> Fixnum | Bignum | Float (21402.0)

算術演算子。差を計算します。

算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

IPAddr#|(ipaddr) -> IPAddr (21400.0)

他の IPAddr オブジェクトとのビットごとの論理和により、 新しい IPAddr オブジェクトを生成します。

...他の IPAddr オブジェクトとのビットごとの論理和により、
新しい IPAddr オブジェクトを生成します。

@param ipaddr 他の IPAddr オブジェクト。
また、数値や文字列も受け付けます。...

Shell::Filter#|(filter) -> object (21348.0)

パイプ結合を filter に対して行います。

...パイプ結合を filter に対して行います。

@param filter Shell::Filter オブジェクトを指定します。

@return filter を返します。

使用例
require 'shell'
Shell.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Sh...
...ell.new
sh.transact {
i
= 1
while i <= (cat("/etc/passwd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i
+= 1
end
}...

絞り込み条件を変える

Bignum#|(other) -> Fixnum | Bignum (21313.0)

ビット二項演算子。論理和を計算します。

...ビット二項演算子。論理和を計算します。

@param other 数値

1 | 1 #=> 1
2 | 3 #=> 3...

Fixnum#|(other) -> Fixnum | Bignum (21313.0)

ビット二項演算子。論理和を計算します。

...ビット二項演算子。論理和を計算します。

@param other 数値

1 | 1 #=> 1
2 | 3 #=> 3...

Rational#-(other) -> Rational | Float (21313.0)

差を計算します。

...差を計算します。

@param other 自身から引く数

other に Float を指定した場合は、計算結果を Float で返しま
す。

//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}...

Integer#|(other) -> Integer (21312.0)

ビット二項演算子。論理和を計算します。

...ビット二項演算子。論理和を計算します。

@param other 数値

//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}...

NilClass#|(other) -> bool (21224.0)

other が真なら true を, 偽なら false を返します。

...other が真なら true を, 偽なら false を返します。

@param other 論理和を行なう式です

//emlist[例][ruby]{
nil | true # => true
nil | false # => false
nil | nil # => false
nil | "a" # => true
//}...

絞り込み条件を変える

Date#-(x) -> Rational | Date (18302.0)

x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。

...日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。

@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェクト...

Vector#-(v) -> Vector | Matrix (18301.0)

self からベクトル v を減じたベクトルを返します。

...は column_size が 1 の Matrix オブジェクトも指定できます。
その場合は返り値も Matrix オブジェクトになります。

@param v 減算するベクトル。減算可能な行列やベクトルを指定します。

@raise ExceptionForMatrix::ErrDimensionMismatch 自分...

TracePoint#binding -> Binding | nil (15613.0)

発生したイベントによって生成された Binding オブジェクトを返します。

...れた Binding オブジェクトを返します。

C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。

//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:...
...call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}...

TracePoint#binding -> Binding (15512.0)

発生したイベントによって生成された Binding オブジェクトを返します。

...発生したイベントによって生成された Binding オブジェクトを返します。


//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}...
<< 1 2 3 ... > >>