Sha256: a90484a30746076aa6236c3272d62011329584d8d04b54ea66e818c801c2b7a6

Contents?: true

Size: 268 Bytes

Versions: 47

Compression:

Stored size: 268 Bytes

Contents

module Lookbook
  class ActionViewAnnotationsStripper < Service
    attr_reader :text

    ANNOTATIONS_REGEX = /<!-- (BEGIN|END) (.*) -->/

    def initialize(text)
      @text = text.to_s
    end

    def call
      text.gsub(ANNOTATIONS_REGEX, "")
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
lookbook-1.4.2 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.4.1 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.4.0 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.3.4 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.3.3 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.3.1 lib/lookbook/services/templates/action_view_annotations_stripper.rb
lookbook-1.3.0 lib/lookbook/services/templates/action_view_annotations_stripper.rb