Sha256: 6a4d549defb314c75778c9fd5f4d78b31322cc546ef1cb9bbefd46eb43e68306

Contents?: true

Size: 464 Bytes

Versions: 8

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require "rexml/document"

module SublimeTextKit
  module Snippets
    module Printers
      class ASCIIDoc
        def initialize collector: Collector.new
          @collector = collector
        end

        def call
          collector.call.each do |snippet|
            puts "* #{snippet.description} - `#{snippet.trigger}`\n"
          end
        end

        private

        attr_reader :collector
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sublime_text_kit-10.0.2 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-10.0.1 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-10.0.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-9.6.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-9.5.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-9.4.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-9.3.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb
sublime_text_kit-9.2.0 lib/sublime_text_kit/snippets/printers/ascii_doc.rb