132件ヒット
[101-132件を表示]
(0.103秒)
クラス
- Array (12)
-
CSV
:: Row (24) -
CSV
:: Table (24) - Complex (12)
- Matrix (12)
- NilClass (12)
- Numeric (12)
- String (12)
- UnboundMethod (12)
検索結果
先頭3件
-
CSV
:: Table # to _ s(options = Hash . new) -> String (3007.0) -
CSV の文字列に変換して返します。
...ションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"
//}... -
Matrix
# minor(from _ row . . to _ row , from _ col . . to _ col) -> Matrix (107.0) -
selfの部分行列を返します。
...行列の行サイズ
@param from_col 部分行列の開始列(0オリジンで指定)
@param col_size 部分行列の列サイズ
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3, 4, 5]
a2 = [11, 12, 13, 14, 15]
a3 = [21, 22, 23, 24, 25]
a4 = [31, 32, 33, 34, 35]
a5 = [51, 52, 53, 54, 55]... -
UnboundMethod
# owner -> Class | Module (13.0) -
このメソッドが定義されている class か module を返します。
...このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//}...