Sha256: 006ffbf85bf64c78ddcdd21008ad487a30d8fbd93822c647e18fe6ab5584ec4c

Contents?: true

Size: 318 Bytes

Versions: 15

Compression:

Stored size: 318 Bytes

Contents

# encoding: utf-8
module Prismic
  module Fragments
    class Separator < Fragment
      attr_accessor :value

      def initialize(value)
        @value = value
      end

      def as_html(link_resolver=nil)
        %(<hr class="separator" />)
      end

      def as_text
        @value
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
prismic.io-1.8.2 lib/prismic/fragments/separator.rb
prismic.io-1.8.1 lib/prismic/fragments/separator.rb
prismic.io-1.8.0 lib/prismic/fragments/separator.rb
prismic.io-1.7.0 lib/prismic/fragments/separator.rb
prismic.io-1.6.1 lib/prismic/fragments/separator.rb
prismic.io-1.6.0 lib/prismic/fragments/separator.rb
prismic.io-1.5.0 lib/prismic/fragments/separator.rb
prismic.io-1.4.5 lib/prismic/fragments/separator.rb
prismic.io-1.4.4 lib/prismic/fragments/separator.rb
prismic.io-1.4.3 lib/prismic/fragments/separator.rb
prismic.io-1.4.2 lib/prismic/fragments/separator.rb
prismic.io-1.4.1 lib/prismic/fragments/separator.rb
prismic.io-1.4.0 lib/prismic/fragments/separator.rb
prismic.io-1.3.5 lib/prismic/fragments/separator.rb
prismic.io-1.3.4 lib/prismic/fragments/separator.rb