Sha256: cd63ec2466e008d106ffc7690e2937987472e7f29b8f95a5e2918c3265b8b030

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

module Docks
  module Tags
    class Pattern < Base
      def initialize
        @name = :pattern
        @synonyms = [:page]
        @multiline = false
      end

      def setup_post_processors
        after_each_pattern(:middle) do |pattern|
          name = pattern.name

          pattern.symbols.each do |symbol|
            symbol.pattern = name
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 lib/docks/tags/pattern_tag.rb
docks_app-0.0.2 lib/docks/tags/pattern_tag.rb
docks_app-0.0.1 lib/docks/tags/pattern_tag.rb