78件ヒット
[1-78件を表示]
(0.033秒)
ライブラリ
- csv (24)
-
rdoc
/ context (12)
クラス
- CSV (24)
-
RDoc
:: Context (12)
キーワード
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) - TYPES (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12)
検索結果
先頭5件
-
CSV
. instance(data = $ stdout , options = Hash . new) -> CSV (18132.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
csv2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.r... -
CSV
. instance(data = $ stdout , options = Hash . new) {|csv| . . . } -> object (18132.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
csv2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.r... -
RDoc
:: Context :: TYPES -> ["class" , "instance"] (3101.0) -
メソッドの種類を文字列の配列で返します。
メソッドの種類を文字列の配列で返します。 -
ruby 1
. 6 feature (162.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...4-10: Object#((<Object/remove_instance_variable>))
指定したインスタンス変数が定義されていない場合例外 NameError を起こ
すようになりました。((<ruby-bugs-ja:PR#216>))
Object.new.instance_eval {
p remove_instance_variable :@foo
}......=> ruby 1.6.7 (2002-03-01) [i586-linux]
nil
=> -:2:in `remove_instance_variable': instance variable @foo not defined (NameError)
ruby 1.6.7 (2002-04-10) [i586-linux]
: 2002-04-04: Integer#((<Integer/step>))
第二引数が 1 よりも小さい場合に 0 を......のようなスクリプトでTEXT_PLAINが"text/plain; charset=iso-8859-1"
のように書き換えられていました。
((<ruby-dev:14716>))
require 'cgi'
TEXT_PLAIN = "text/plain"
cgi = CGI.new
print cgi.header("type" => TEXT_PLAIN,... -
NEWS for Ruby 2
. 1 . 0 (30.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...: IO.open は外部エンコーディングが ASCII-8BIT のとき内部エンコーディングを無視します。
* Kernel.#eval, Kernel.#instance_eval, Module#module_eval
元の環境のスコープ情報をコピーするようになりました。これは、引数なしの
privat......* REXML::Parsers::StreamParser
* entityイベントをサポート
* REXML::Text
* REXML::Text#<< 'text << "XXX" << "YYY"' のようなメソッドチェインをサポート
* REXML::Text#<< "raw" でないモードをサポート
* rinda
* Rinda::RingServer, Rinda::R... -
NEWS for Ruby 2
. 7 . 0 (24.0) -
NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...Ruby 3.0 では verbose モードでなくても表示され、Ruby 3.2 で削除される
予定です。 16131
* Object#methodとModule#instance_methodがrefinementsを考慮するようになりました。 15373
=== コマンドラインオプション
==== 警告オプション
カ......+ 1
end
end
class Bar < Foo
def add_1(x) # override
x + 2
end
end
obj = Bar.new
p obj.add_1(1) #=> 3
p Foo.instance_method(:add_1).bind(obj).call(1) #=> 2
p Foo.instance_method(:add_1).bind_call(obj, 1) #=> 2
//}
* Warning
* 新規メソッド
* Warning.[] とWarning.[]=が......ドを使うと警告されるようになりました。
代わりにURI.openを使ってください。 15893
* メディアタイプ "text/*" のデフォルトの charset が ISO-8859-1 から UTF-8 に
なりました。 15933
* OptionParser
* 不明なオプションに... -
ruby 1
. 8 . 4 feature (24.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...def initialize
super
end
end
class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end
Bar.new
# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:......#
# * ext/tk/lib/tk.rb: add Tk.pkgconfig_list and Tk.pkgconfig_get
# [Tk8.5 feature].
#
# * ext/tk/lib/tk/text.rb: supports new indices modifiers on a Text
# widget [Tk8.5 feature].
#
Tcl/Tk8.5a3 への対応のため,Tk.pkgconfig_list および Tk.pkgconfig_get......istbox.rb, ext/tk/lib/tk/menu.rb,
# ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
# ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tk/text.rb,
# ext/tk/lib/tk/toplevel.rb: improve conversion of option values.
#
# * ext/tk/lib/tkextlib/*: ditto.
#
ウィジェット...