Module: JIJI::Util::Model
- Included in:
- Agent::Property, PeriodicallyRate, PeriodicallyRates, PeriodicallyValue, Rate, Rates
- Defined in:
- lib/jiji/util/util.rb
Overview
モデルオブジェクトの基底モジュール
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
オブジェクト比較メソッド
44 45 46 |
# File 'lib/jiji/util/util.rb', line 44 def ==(other) _eql?(other) { |a,b| a == b } end |
#===(other) ⇒ Object
47 48 49 |
# File 'lib/jiji/util/util.rb', line 47 def ===(other) _eql?(other) { |a,b| a === b } end |
#eql?(other) ⇒ Boolean
50 51 52 |
# File 'lib/jiji/util/util.rb', line 50 def eql?(other) _eql?(other) { |a,b| a.eql? b } end |
#hash ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/jiji/util/util.rb', line 53 def hash hash = 0 values.each {|v| hash = v.hash + 31 * hash } return hash end |