Class: Connect::Entry::Interpolator
- Defined in:
 - lib/connect/entries/interpolator.rb
 
Overview
A class representing a reference entry in the values table. An instance of the class connect one entry to an other
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #inspect ⇒ Object
 - 
  
    
      #to_ext  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Translate the object for external representation.
 - #to_s ⇒ Object
 
Methods inherited from Base
#add_reference, #final, #initialize, #merge!
Constructor Details
This class inherits a constructor from Connect::Entry::Base
Instance Method Details
#inspect ⇒ Object
      26 27 28  | 
    
      # File 'lib/connect/entries/interpolator.rb', line 26 def inspect "interpolator containing '#{@value}'" end  | 
  
#to_ext ⇒ Hash
Translate the object for external representation
      18 19 20  | 
    
      # File 'lib/connect/entries/interpolator.rb', line 18 def to_ext Connect::Interpolator.new(Connect::Entry::Base.values_table).translate(@value) end  | 
  
#to_s ⇒ Object
      22 23 24  | 
    
      # File 'lib/connect/entries/interpolator.rb', line 22 def to_s to_ext end  |