Class: AEMReference::CustomRoot

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

Constant Summary

Constants inherited from PositionSpecifier

PositionSpecifier::After, PositionSpecifier::Before, PositionSpecifier::Beginning, PositionSpecifier::End, PositionSpecifier::Next, PositionSpecifier::Previous

Instance Attribute Summary

Attributes inherited from PositionSpecifier

#AEM_want

Instance Method Summary collapse

Methods inherited from ReferenceRoot

#AEM_root

Methods inherited from PositionSpecifier

#after, #before, #beginning, #begins_with, #contains, #elements, #end, #ends_with, #eq, #ge, #gt, #is_in, #le, #lt, #ne, #next, #previous, #property, #user_property

Methods inherited from Specifier

#AEM_pack_self, #AEM_root, #AEM_set_desc, #AEM_true_self

Methods inherited from Query

#==, #AEM_comparable, #hash, #inspect

Constructor Details

#initialize(value) ⇒ CustomRoot

Syntax: AEM.custom_root(value)



997
998
999
1000
# File 'lib/_aem/aemreference.rb', line 997

def initialize(value)
  @value = value
  super()
end

Instance Method Details

#_pack_self(codecs) ⇒ Object



1006
1007
1008
# File 'lib/_aem/aemreference.rb', line 1006

def _pack_self(codecs)
  return codecs.pack(@value)
end

#AEM_resolve(obj) ⇒ Object



1010
1011
1012
# File 'lib/_aem/aemreference.rb', line 1010

def AEM_resolve(obj)
  return obj.send(:custom_root, @value)
end

#to_sObject



1002
1003
1004
# File 'lib/_aem/aemreference.rb', line 1002

def to_s
  return "AEM.custom_root(#{@value.inspect})"
end