Class: Prismic::Fragments::Separator
- Defined in:
 - lib/prismic/fragments/separator.rb
 
Instance Attribute Summary collapse
- 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute value.
 
Instance Method Summary collapse
- #as_html(link_resolver = nil) ⇒ Object
 - #as_text ⇒ Object
 - 
  
    
      #initialize(value)  ⇒ Separator 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Separator.
 
Constructor Details
#initialize(value) ⇒ Separator
Returns a new instance of Separator
      7 8 9  | 
    
      # File 'lib/prismic/fragments/separator.rb', line 7 def initialize(value) @value = value end  | 
  
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
      5 6 7  | 
    
      # File 'lib/prismic/fragments/separator.rb', line 5 def value @value end  | 
  
Instance Method Details
#as_html(link_resolver = nil) ⇒ Object
      11 12 13  | 
    
      # File 'lib/prismic/fragments/separator.rb', line 11 def as_html(link_resolver=nil) %(<hr class="separator" />) end  | 
  
#as_text ⇒ Object
      15 16 17  | 
    
      # File 'lib/prismic/fragments/separator.rb', line 15 def as_text @value end  |