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.



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

def initialize(obj)
  @obj = obj
end

Instance Attribute Details

#objObject

Returns the value of attribute obj.



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

def obj
  @obj
end

Instance Method Details

#==(rhs) ⇒ Object



220
221
222
# File 'lib/jrubyfx-fxmlloader.rb', line 220

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)


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

def eql?(rhs)
  self == rhs
end

#hashObject



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

def hash
  @obj.object_id
end