102件ヒット
[1-100件を表示]
(0.065秒)
別のキーワード
種類
- 特異メソッド (84)
- インスタンスメソッド (18)
ライブラリ
- csv (6)
-
io
/ console (12) -
io
/ console / size (12) - matrix (24)
- rake (24)
- readline (24)
キーワード
- application (12)
- application= (12)
-
console
_ size (12) - deconstruct (3)
-
deconstruct
_ keys (3) - empty (12)
-
get
_ screen _ size (12) -
set
_ screen _ size (12) - winsize= (12)
検索結果
先頭5件
-
Matrix
. columns(columns) -> Matrix (18236.0) -
引数 columns を列ベクトルの集合とする行列を生成します。
...引数 columns を列ベクトルの集合とする行列を生成します。
@param columns 配列の配列を渡します。
=== 注意
Matrix.rows との違いは引数として渡す配列の配列を列ベクトルの配列とみなして行列を生成します。
//emlist[例][ruby]{
re......3]
# [ 4, 5, 6]
# [-1, -2, -3]
# 配列を列ベクトルとして生成
m = Matrix.columns([a1, a2, a3])
p m # => Matrix[[1, 4, -1], [2, 5, -2], [3, 6, -3]]
# 行列としてのイメージ => [1, 4, -1]
#... -
Readline
. set _ screen _ size(rows , columns) -> Readline (147.0) -
端末のサイズを引数 row、columns に設定します。
...端末のサイズを引数 row、columns に設定します。
@param rows 行数を整数で指定します。
@param columns 列数を整数で指定します。
@raise NotImplementedError サポートしていない環境で発生します。
@see GNU Readline ライブラリの rl_set_scre... -
Rake
. application=(app) (108.0) -
現在の Rake アプリケーションをセットします。
...現在の Rake アプリケーションをセットします。
@param app Rake::Application のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_......application = app
pp Rake.application
end
# => #<Rake::Application:0x00005624e6c30eb8
# @default_loader=#<Rake::DefaultLoader:0x00005624e6c30cd8>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x00005624e6c30bc0>,
# ".rf"=>#<Rake::......rules=false>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile=nil,
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks={},
# @terminal_columns=0,
# @top_level_tasks=[],
# @tty_output=true... -
Rake
. application -> Rake :: Application (102.0) -
現在の Rake アプリケーションを返します。
...# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
# @imported=[],
# @last_description=nil,
# @loaders=
# {".rb"=>#<Rake::DefaultLoader:0x31b0c18>,
# ".rf"=>#<Rake::DefaultLoader:0x31b0b88>,
# ".rake"=>#<Rake::DefaultLoader:0x31b0b10>},
# @name="rake",
# @o......ib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],
# @scope=LL(),
# @tasks=
# {"default"=><Rake::Task default =......> [test_rake_app]>,
# "test_rake_app"=><Rake::Task test_rake_app => []>},
# @terminal_columns=0,
# @top_level_tasks=["default"],
# @tty_output=false>
//}... -
Readline
. get _ screen _ size -> [Integer , Integer] (28.0) -
端末のサイズを [rows, columns] で返します。
...端末のサイズを [rows, columns] で返します。
@raise NotImplementedError サポートしていない環境で発生します。
@see GNU Readline ライブラリの rl_get_screen_size 関数... -
CSV
:: Row # deconstruct _ keys(keys) -> Hash (24.0) -
パターンマッチに使用するヘッダの名前と値の Hash を返します。
...ッダ名が文字列かつ Hash パターン でパターンマッチしたい場合はキーをシンボルに変換する必要があります。
@param keys パターンマッチに使用するヘッダの名前の配列を指定します。nil の場合は全てをパターンマッチに使....... }
puts "all 2 or more"
in { header1: ...2, header2: 2.., header3: 2.. }
puts "first column is less than 2, and rest columns are 2 or more"
end
#=> "first column is less than 2, and rest columns are 2 or more" が出力される
//}
@see d:spec/pattern_matching#matching_non_primitive_objects... -
Matrix
. empty(row _ size=0 , column _ size=0) -> Matrix (24.0) -
要素を持たない行列を返します。
...pty(2, 0)
m == Matrix[ [], [] ]
# => true
n = Matrix.empty(0, 3)
n == Matrix.columns([ [], [], [] ])
# => true
m * n
# => Matrix[[0, 0, 0], [0, 0, 0]]
//}
@param row_size 行列の行数
@param column_size 行列の列数
@raise ArgumentError row_size, column_size が両方とも0でない場合に... -
IO
. console _ size -> [Integer , Integer] (22.0) -
端末のサイズを [rows, columns] で返します。
...端末のサイズを [rows, columns] で返します。
io/console が利用できない場合は、IO.default_console_size
の値を返します。
@see IO.default_console_size... -
CSV
:: Row # deconstruct -> [object] (18.0) -
パターンマッチに使用する行の値の配列を返します。
...3])
case row
in [2.., 2.., 2..]
puts "all 2 or more"
in [...2, 2.., 2..]
puts "first column is less than 2, and rest columns are 2 or more"
end
#=> "first column is less than 2, and rest columns are 2 or more" が出力される
//}
@see d:spec/pattern_matching#matching_non_primitive_objects... -
IO
# winsize=(size) (12.0) -
端末のサイズを設定します。
...端末のサイズを設定します。
@param size [rows, columns] を数値の配列で指定します。
効果はプラットフォームや環境に依存します。...