Class: AEMReference::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/_aem/aemreference.rb

Overview

BASE CLASS

Direct Known Subclasses

AEM::Application, DeferredSpecifier, Specifier, Test

Instance Method Summary collapse

Constructor Details

#initializeQuery

Returns a new instance of Query.



88
89
90
# File 'lib/_aem/aemreference.rb', line 88

def initialize
  @_comparable = nil
end

Instance Method Details

#==(val) ⇒ Object Also known as: eql?



102
103
104
105
106
# File 'lib/_aem/aemreference.rb', line 102

def ==(val)
  return (self.equal?(val) or (
            self.class == val.class and
            self.AEM_comparable == val.AEM_comparable))
end

#AEM_comparableObject



92
93
94
95
96
97
98
99
100
# File 'lib/_aem/aemreference.rb', line 92

def AEM_comparable
  # called by Query#==; returns the data needed to compare two aem references
  if not @_comparable then
    collector = AEMReference::CollectComparable.new
    AEM_resolve(collector)
    @_comparable = collector.result
  end
  return @_comparable
end

#hashObject



110
111
112
# File 'lib/_aem/aemreference.rb', line 110

def hash
  return to_s.hash
end

#inspectObject



114
115
116
# File 'lib/_aem/aemreference.rb', line 114

def inspect
  return to_s
end