るりまサーチ

最速Rubyリファレンスマニュアル検索!
2511件ヒット [201-300件を表示] (0.084秒)

別のキーワード

  1. rc2 new
  2. rc4 new
  3. rc5 new
  4. context rc
  5. openssl rc5

クラス

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

BigDecimal#coerce(other) -> Array (6101.0)

self と other が同じクラスになるよう、self か other を変換し [other, self] という配列にして返します。

...her 比較または変換するオブジェクト

BigDecimal#coerce は Ruby における強制型変換のための機能です。
BigDecimal オブジェクトとその他のオブジェクト間の各種の計算は
BigDecimal#coerce の結果を元に行われます。

//emlist[][ruby]{
requir...

Binding#source_location -> [String, Integer] (6101.0)

self の Ruby のソースファイル名と行番号を返します。

...self の Ruby のソースファイル名と行番号を返します。

d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。

//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...

CSV#force_quotes? -> bool (6101.0)

出力される全てのフィールドがクオートされる場合は、真を返します。

...V.generate(force_quotes: false) do |csv|
rows.each { |row| csv << row }
csv.force_quotes? # => false
end
print result

# => header1,header2
# "row1_1,",row1_2
//}

//emlist[例][ruby]{
require "csv"

rows = [["header1", "header2"], ["row1_1,", "row1_2"]]
result = CSV.generate(force_quotes: tr...
...ue) do |csv|
rows.each { |row| csv << row }
csv.force_quotes? # => true
end
print result

# => true
# => "header1","header2"
# "row1_1,","row1_2"
//}

@see CSV.new...

Class#superclass -> Class | nil (6101.0)

自身のスーパークラスを返します。

...y]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}

ただし BasicObject.superclass は nil を返します。

//emlist[例][ruby]{
BasicObject.superclass #=> ni...

Complex#coerce(other) -> [Complex, Complex] (6101.0)

other を Complex に変換して [変換後の other, self] の配列を返します。

...other を Complex に変換して [変換後の other, self] の配列を返します。

@raise TypeError 変換できないオブジェクトを指定した場合に発生します。

//emlist[例][ruby]{
Complex(1).coerce(2) # => [(2+0i), (1+0i)]
//}...

絞り込み条件を変える

DublinCoreModel#dc_source (6101.0)

@todo

@todo

DublinCoreModel#dc_source= (6101.0)

@todo

@todo

DublinCoreModel#dc_sources (6101.0)

@todo

@todo

ERB#src -> String (6101.0)

変換した Ruby スクリプトを取得します。

...た Ruby スクリプトを取得します。

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test1<%= @arg1%>\ntest2<%= @arg2%>\n\n")
puts erb.src

# #coding:UTF-8
# _erbout = +''; _erbout.<< "test1".freeze; _erbout.<<(( @arg1).to_s); _erbout.<< "\ntest2".freeze
# ; _erbout.<<(( @arg2).to_s); _e...
<< < 1 2 3 4 5 ... > >>