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