るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 > >>

CGI::HtmlExtension#base(href = "") -> String (24229.0)

base 要素を生成します。

...
base
要素を生成します。

@param href 文字列を指定します。属性をハッシュで指定することもできます。

例:
base
("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">"...

Integer#inspect(base=10) -> String (15414.0)

整数を 10 進文字列表現に変換します。

...現に変換します。

//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}

@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2 - 36 以外の数値を指定...

RubyVM::InstructionSequence#base_label -> String (15219.0)

self が表す命令シーケンスの基本ラベルを返します。

...ラベルを返します。

例1:irb で実行した場合

i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
i
seq.base_label
# => "<compiled>"

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/me...
...end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"

例3:

# /tmp/method2.rb
def hello
puts "hello, world"
end

RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"

@see RubyVM::InstructionSequence#l...

Bignum#inspect(base = 10) -> String (12408.0)

self を引数で指定した基数の文字列表現に変換します。

...self を引数で指定した基数の文字列表現に変換します。

@param base 基数を 2 から 36 の整数で指定します。

12345654321.to_s #=> "12345654321"
12345654321.to_s(2) #=> "1011011111110110111011110000110001"
12345654321.to_s(8) #=> "133766736...

Fixnum#inspect(base = 10) -> String (12408.0)

self を引数で指定した基数の文字列表現に変換します。

...列表現に変換します。

@param base 基数を 2 から 36 の整数で指定します。

12345.to_s #=> "12345"
12345.to_s(2) #=> "11000000111001"
12345.to_s(8) #=> "30071"
12345.to_s(10) #=> "12345"
12345.to_s(16) #=> "3039"
12345.to_s(36) #=> "9ix"...

絞り込み条件を変える

Integer#to_s(base=10) -> String (9214.0)

整数を 10 進文字列表現に変換します。

...現に変換します。

//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}

@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2 - 36 以外の数値を指定...

OpenSSL::SSL::SSLContext#ca_file=(ca) (9112.0)

接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを 設定します。

...の説明)

-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----

(ここに証明書の説明)

-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----

デフォルトは nil です。

@param ca C...
...A証明書ファイルのパス文字列
@see OpenSSL::SSL::SSLContext#ca_file=...

RubyVM::InstructionSequence#label -> String (9106.0)

self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。

..."<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。

例1:irb で実行した場合

i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
i
seq.label
# => "<compiled>"...
...例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"

例3:

# /tmp/method2.rb
def hello
puts "hello, worl...
...d"
end

RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"

@see RubyVM::InstructionSequence#base_label...

Win32::Registry::Constants (9006.0)

詳細は以下の MSDN Library を参照してください。

...詳細は以下の MSDN Library を参照してください。

* Registry: http://msdn.microsoft.com/library/en-us/sysinfo/base/registry.asp...

Bignum#to_s(base = 10) -> String (6208.0)

self を引数で指定した基数の文字列表現に変換します。

...self を引数で指定した基数の文字列表現に変換します。

@param base 基数を 2 から 36 の整数で指定します。

12345654321.to_s #=> "12345654321"
12345654321.to_s(2) #=> "1011011111110110111011110000110001"
12345654321.to_s(8) #=> "133766736...

絞り込み条件を変える

Fixnum#to_s(base = 10) -> String (6208.0)

self を引数で指定した基数の文字列表現に変換します。

...列表現に変換します。

@param base 基数を 2 から 36 の整数で指定します。

12345.to_s #=> "12345"
12345.to_s(2) #=> "11000000111001"
12345.to_s(8) #=> "30071"
12345.to_s(10) #=> "12345"
12345.to_s(16) #=> "3039"
12345.to_s(36) #=> "9ix"...

Etc::SC_THREAD_DESTRUCTOR_ITERATIONS -> Integer (6202.0)

Etc.#sysconf の引数に指定します。

Etc.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。
<< 1 2 > >>