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