Class: SecretHashCompararator

Inherits:
Object
  • Object
show all
Defined in:
lib/jrubyfx-fxmlloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ SecretHashCompararator

Returns a new instance of SecretHashCompararator.



207
208
209
# File 'lib/jrubyfx-fxmlloader.rb', line 207

def initialize(obj)
  @obj = obj
end

Instance Attribute Details

#objObject

Returns the value of attribute obj.



206
207
208
# File 'lib/jrubyfx-fxmlloader.rb', line 206

def obj
  @obj
end

Instance Method Details

#==(rhs) ⇒ Object



216
217
218
# File 'lib/jrubyfx-fxmlloader.rb', line 216

def ==(rhs)
  @obj.object_id == rhs.object_id or (rhs.is_a? SecretHashCompararator and @obj.object_id == rhs.hash)
end

#eql?(rhs) ⇒ Boolean

Returns:

  • (Boolean)


213
214
215
# File 'lib/jrubyfx-fxmlloader.rb', line 213

def eql?(rhs)
  self == rhs
end

#hashObject



210
211
212
# File 'lib/jrubyfx-fxmlloader.rb', line 210

def hash
  @obj.object_id
end