キーワード
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 6 . 0 (7) - Ruby用語集 (12)
- クラス/メソッドの定義 (12)
検索結果
-
NEWS for Ruby 2
. 2 . 0 (49.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...* 追加: Matrix#laplace_expansion
* 追加: Vector.basis
* 追加: Vector#-@, Vector#+@, Matrix#-@, Matrix#+@
* 追加: Vector#cross_product
* 追加: Vector#dot
* 追加: Vector#angle_with
* 追加: Vector.independent?, Vector#independent?
* pathname
* Pathname#/ は... -
クラス/メソッドの定義 (31.0)
-
クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined
...に、再定義可能な演算子(例: ==, +, -
など spec/operator を参照)も指定できます(operator参照)。
//emlist[例][ruby]{
class Vector2D
attr_accessor :x, :y # インスタンス変数@x, @yに対応するゲッタとセッタを定義
def initialize(x, y) # コンスト......イド
other_vec.x == @x && other_vec.y == @y
end
def +(other_vec)
Vector2D.new(other_vec.x + @x, other_vec.y + @y)
end
# ...
end
vec0 = Vector2D.new(10, 20); vec1 = Vector2D.new(20, 30)
p vec0 + vec1 == Vector2D.new(30, 50) #=> true
//}
仮引数にデフォルト式が与えられ... -
NEWS for Ruby 2
. 6 . 0 (19.0) -
NEWS for Ruby 2.6.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ド
* Matrix#antisymmetric?, Matrix#skew_symmetric?
* Matrix#map!, Matrix#collect! 14151
* Matrix#[]=
* Vector#map!, Vector#collect!
* Vector#[]=
* Net::HTTP
* 新規オプション
* :write_timeout キーワード引数が Net::HTTP.new に追加されま......をサポート
* いくつかの XPath 実装を修正:
* "//#{ELEMENT_NAME}[#{POSITION}]" の問題
* string() 関数: function(document) がルート要素の外のノードを返すのを修正
* "/ #{ELEMENT_NAME} " の問題
* "/ #{ELEMENT_NAME} [ #{PREDICATE} ]"... -
NEWS for Ruby 2
. 1 . 0 (7.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...拡張: Digest::Class.file コンストラクタのためにオプショナル引数を取れるようになりました
* matrix
* 追加: Vector#cross_product
* net/smtp
* 追加: Net::SMTP#rset RSET コマンドに対応している
* objspace
* 追加: ObjectSpace.#trace_ob... -
NEWS for Ruby 2
. 3 . 0 (7.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...た。
10740
* drb
* 使用していない引数を削除しました。
https://github.com/ruby/ruby/pull/515
* matrix
* Vector#roundを追加。
https://github.com/ruby/ruby/pull/802
* webrick/utils
* 使用していない引数を削除しました。... -
Ruby用語集 (7.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-based
番号が 0 から始まること。
例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。
: 1 オリジン
:......し、切り替えて使うための
ツールの一つ。Linux、macOS などで動作する。
https://github.com/rbenv/rbenv
: RD(Ruby Document format)
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。
: RDoc
Ruby スクリ......ルが利用する、二つのオブジェクトの順序関係を表す
演算子 <=> の俗称。
: 埋め込みドキュメント
: embedded document
ソースコード中の =begin 行から =end 行まで。コメントとみなされ実行されない。
その名の通り、この部...