Class: Connect::Entry::RegexpObjectReference
- Inherits:
 - 
      ObjectReference
      
        
- Object
 - Base
 - ObjectReference
 - Connect::Entry::RegexpObjectReference
 
 
- Defined in:
 - lib/connect/entries/regexp_object_reference.rb
 
Overview
A class representing a object entry in the values table.
Instance Attribute Summary
Attributes inherited from ObjectReference
Attributes inherited from Base
Instance Method Summary collapse
- #inspect ⇒ Object
 - 
  
    
      #to_ext  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Translate the object for external representation.
 
Methods inherited from ObjectReference
Methods inherited from Base
#add_reference, #final, #initialize, #merge!
Constructor Details
This class inherits a constructor from Connect::Entry::ObjectReference
Instance Method Details
#inspect ⇒ Object
      10 11 12  | 
    
      # File 'lib/connect/entries/regexp_object_reference.rb', line 10 def inspect "regexp reference to #{@type}(#{@name})#{@selector}" end  | 
  
#to_ext ⇒ Hash
Translate the object for external representation
      20 21 22 23 24 25 26 27 28  | 
    
      # File 'lib/connect/entries/regexp_object_reference.rb', line 20 def to_ext values = Connect::Entry::Base.objects_table.lookup_regexp(@type, @name) return values if @selector.nil? return_value = {} values.each do |key, hash| return_value.merge!(key => Connect::Selector.run(hash, @selector)) end return_value end  |