84件ヒット
[1-84件を表示]
(0.083秒)
種類
- インスタンスメソッド (36)
- 定数 (24)
- 文書 (12)
- クラス (12)
ライブラリ
- ビルトイン (12)
- csv (12)
- rake (24)
-
win32
/ registry (24)
クラス
- Binding (12)
-
Rake
:: FileList (24)
モジュール
キーワード
- CSV (12)
-
REG
_ CREATED _ NEW _ KEY (12) -
REG
_ OPENED _ EXISTING _ KEY (12) - existing! (12)
-
local
_ variable _ set (12) -
ruby 1
. 8 . 4 feature (12)
検索結果
先頭5件
-
Rake
:: FileList # existing -> Rake :: FileList (21207.0) -
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。
...含む Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.existing # => ["... -
Rake
:: FileList # existing! -> self (9107.0) -
自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含むように自身を変更して返します。
...します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.existing! # => ["test1.rb", "test2.rb"]
fil... -
Binding
# local _ variable _ set(symbol , obj) (6136.0) -
引数 symbol で指定した名前のローカル変数に引数 obj を設定します。
...aram symbol ローカル変数名を Symbol オブジェクトで指定します。
@param obj 引数 symbol で指定したローカル変数に設定するオブジェクトを指定します。
//emlist[例][ruby]{
def foo
a = 1
bind = binding
bind.local_variable_set(:a, 2) # set existing......local variable `a'
bind.local_variable_set(:b, 3) # create new local variable `b'
# `b' exists only in binding
p bind.local_variable_get(:a) # => 2
p bind.local_variable_get(:b) # => 3
p a # => 2
p b......# => NameError
end
//}
このメソッドは以下のコード(ただし、obj が Ruby のコードで出力される場
合)と同様の動作をします。
//emlist[][ruby]{
binding.eval("#{symbol} = #{obj}")
//}
@see Binding#local_variable_get, Binding#local_variable_defined?... -
Win32
:: Registry :: Constants :: REG _ CREATED _ NEW _ KEY (6101.0) -
@todo
@todo
キーが新しく作られたか、既存キーが開かれたか。
Win32::Registry#disposition メソッドも参照してください。 -
Win32
:: Registry :: Constants :: REG _ OPENED _ EXISTING _ KEY (6101.0) -
@todo
@todo
キーが新しく作られたか、既存キーが開かれたか。
Win32::Registry#disposition メソッドも参照してください。 -
ruby 1
. 8 . 4 feature (3132.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...ruby 1.8.4 feature
ruby 1.8.4 での ruby 1.8.3 からの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリへの単なる定数の追加は収録しない。......変更
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
*......-v -Ku a.rb -n 時間
ruby 1.8.4 (2005-12-16) [i686-linux]
[-n, 時間]
時間
: find
#Tue Nov 15 23:46:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * lib/find.rb (Find::find): should not ignore symbolic links to
# non-existing files. [ruby-talk:165... -
CSV (24.0)
-
このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。
...O.write "sample.csv", csv_text
# ファイルから一行ずつ
CSV.foreach("sample.csv") do |row|
p row
end
# => ["Ruby", "1995"]
# ["Rust", "2010"]
# ファイルから一度に
p CSV.read("sample.csv")
# => [["Ruby", "1995"], ["Rust", "2010"]]
# 文字列から一行ずつ
CSV.parse(csv_t......文字列から一度に
p CSV.parse(csv_text)
# => [["Ruby", "1995"], ["Rust", "2010"]]
//}
=== 書き込み
//emlist[][ruby]{
require 'csv'
# ファイルへ書き込み
CSV.open("path/to/file.csv", "wb") do |csv|
csv << ["row", "of", "CSV", "data"]
csv << ["another", "row"]
# ...
end
#......s that allow you to open IO objects (CSV::foreach(), CSV::open(),
CSV::read(), and CSV::readlines()) do allow you to specify the Encoding.
One minor exception comes when generating CSV into a String with an Encoding
that is not ASCII compatible. There's no existing data for CSV to use to
prepare i...