るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

StringScanner#beginning_of_line? -> bool (21502.0)

スキャンポインタが行頭を指しているなら 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+/)...

Socket::Option.bool(family, level, optname, boolean) -> Socket::Option (21413.0)

整数をデータとして持つ Socket::Option オブジェクト新たに生成し返します。

...て持つ Socket::Option オブジェクト新たに生成し返します。

family, level, optname には Socket::SOL_SOCKET のような整数の他、
文字列("SOL_SOCKET", "SOCKET")、シンボル(:SOL_SOCKET, :SOCKET)を
指定することができます。

@param family ソケットファ...
...ションの名前
@param boolean データ(真偽値)

require 'socket'

p Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true)
# => #<Socket::Option: INET SOCKET KEEPALIVE 1>

p Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, false)
# => #<Socket::Option: AF_INET SOCKET KEEPALIVE 0>...

Socket::Option#bool -> bool (21302.0)

オプションのデータ(内容)を真偽値に変換して返します。

...オプションのデータ(内容)を真偽値に変換して返します。

@raise TypeError dataのバイト数が不適切である(sizeof(int)と異なる)場合に発生します
@see Socket::Option#data...

Encoding::InvalidByteSequenceError#incomplete_input? -> bool (18431.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.conve...
...rt("abc\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}...

Gem::Installer.home_install_warning -> bool (15401.0)

この値が真の場合、ホームディレクトリに Gem をインストールしようとすると警告を表示します。

この値が真の場合、ホームディレクトリに Gem をインストールしようとすると警告を表示します。

絞り込み条件を変える

IRB::ExtendCommandBundle#irb_require(*opts, &b) -> bool (15401.0)

現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。

...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。

@see IRB::ExtendCommand::Require#execute...

OpenSSL::PKey::EC::Point#infinity? -> bool (15401.0)

自身が無限遠点であるならば true を返します。

...自身が無限遠点であるならば true を返します。

@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します
@see OpenSSL::PKey::EC::Point#set_to_infinity!...

Kconv.#isjis(str) -> bool (12451.0)

文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。

...文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。

@param str 判定対象の文字列
@see String#isjis

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

euc_str = "\
\xa5\xaa\xa5\xd6\xa5\xb8\xa5\xa7\xa5\xaf\xa5\xc8\xbb\xd8\xb8\xfe\
\xa5\xd7\xa5\xed\xa5\xb0...
...force_encoding('EUC-JP')

jis_str = "\
\x1b\x24\x42\x25\x2a\x25\x56\x25\x38\x25\x27\x25\x2f\x25\x48\x3b\x58\x38\x7e\
\x25\x57\x25\x6d\x25\x30\x25\x69\x25\x5f\x25\x73\x25\x30\x38\x40\x38\x6c\x1b\x28\x42\
\x52\x75\x62\x79".force_encoding('ISO-2022-JP')

euc_str.isjis # => false
jis_str.isjis # => tr...

Kconv.#issjis(str) -> bool (12401.0)

文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。

...文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。

@param str 判定対象の文字列
@see String#issjis...

Object#instance_variable_defined?(var) -> bool (12401.0)

インスタンス変数 var が定義されていたら真を返します。

...//emlist[][ruby]{
class Fred
def initialize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instance_variable_defined?("@c") #=> false
//}

@see Object#instance_variable_...
...get,Object#instance_variable_set,Object#instance_variables...

絞り込み条件を変える

<< 1 2 3 ... > >>