Sha256: 9fc80ef5f742f1cb1926229b58332ddb9b9a7440bdbb3c9030b00a0f20e115d3
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module SublimeTextKit module Snippets # Prints snippets as a list. class Printer include Dependencies[:io] def initialize(collector: Collector.new, **) super(**) @collector = collector end def call bullet collector.call.each do |snippet| io.puts "#{bullet} #{snippet.description} - `#{snippet.trigger}`" end end private attr_reader :collector end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sublime_text_kit-18.0.0 | lib/sublime_text_kit/snippets/printer.rb |