Class: SecretHashCompararator
- Inherits:
-
Object
- Object
- SecretHashCompararator
- Defined in:
- lib/jrubyfx-fxmlloader.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
Returns the value of attribute obj.
Instance Method Summary collapse
- #==(rhs) ⇒ Object
- #eql?(rhs) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(obj) ⇒ SecretHashCompararator
constructor
A new instance of SecretHashCompararator.
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
#obj ⇒ Object
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
213 214 215 |
# File 'lib/jrubyfx-fxmlloader.rb', line 213 def eql?(rhs) self == rhs end |
#hash ⇒ Object
210 211 212 |
# File 'lib/jrubyfx-fxmlloader.rb', line 210 def hash @obj.object_id end |