るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

irb/ruby-token (44016.0)

Ruby のソースコード中の各種トークンを定義したサブライブラリです。

...Ruby のソースコード中の各種トークンを定義したサブライブラリです。

このライブラリで定義されているメソッドはユーザが直接使用するものではありません。...

Encoding::InvalidByteSequenceError#incomplete_input? -> bool (27436.0)

エラー発生時に入力文字列が不足している場合に真を返します。

...//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")

begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end

begin
ec.convert("abc...
...\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}...

Encoding::Converter#destination_encoding -> Encoding (24624.0)

変換先のエンコーディングを返します。

...変換先のエンコーディングを返します。

@return 変換先のエンコーディング

//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "euc-jp")
ec.destination_encoding #=> #<Encoding:EUC-JP>
//}...

REXML::Security.entity_expansion_text_limit -> Integer (24436.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...せ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 10240 (byte) です。

@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

WEBrick::HTTPServlet::CGIHandler::Ruby -> String (24417.0)

Ruby のパスを返します。

...
Ruby
のパスを返します。...

絞り込み条件を変える

StringScanner#beginning_of_line? -> bool (24406.0)

スキャンポインタが行頭を指しているなら true を、 行頭以外を指しているなら false を返します。

... true を、
行頭以外を指しているなら false を返します。

行頭の定義は、文字列先頭かまたは \n の直後を指していることです。
文字列末尾は必ずしも行頭ではありません。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new("test...
...\nstring")
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
s.scan(/\n/)
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
//}...

Time#-(sec) -> Time (24383.0)

自身より sec 秒だけ前の時刻を返します。

...り sec 秒だけ前の時刻を返します。

@param sec 実数を秒を単位として指定します。

//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - 2592000 # => 2000-01-01 00:00:00 +0900
//}...

Time#-(time) -> Float (24378.0)

自身と time との時刻の差を Float で返します。単位は秒です。

... time との時刻の差を Float で返します。単位は秒です。

@param time 自身との差を算出したい Time オブジェクトを指定します。

//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2...
...- t # => 2592000.0
//}...

REXML::Security.entity_expansion_text_limit=(val) (24336.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...させ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 10240 (byte) です。

@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

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

差を計算します。

...差を計算します。

@param other 自身から引く数

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>