Sha256: dee309adfd11ef2929c54277b3fdd9d8e31de00599c05dfe6030e0aca6e98bc5

Contents?: true

Size: 598 Bytes

Versions: 11

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

module SublimeTextKit
  module Snippets
    module Printers
      # Prints snippets in Markdown format.
      class Markdown
        def initialize collector: Collector.new, container: Container
          @collector = collector
          @container = container
        end

        def call
          collector.call.each do |snippet|
            logger.info "- #{snippet.description} - `#{snippet.trigger}`"
          end
        end

        private

        attr_reader :collector, :container

        def logger = container[__method__]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sublime_text_kit-12.3.2 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.3.1 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.3.0 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.2.0 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.1.0 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.0.1 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-12.0.0 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-11.0.3 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-11.0.2 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-11.0.1 lib/sublime_text_kit/snippets/printers/markdown.rb
sublime_text_kit-11.0.0 lib/sublime_text_kit/snippets/printers/markdown.rb