Sha256: 53d7568ce31b3b823cb5b25457d00d6d7beb6f516998647044762acdc92ecad9

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

# frozen_string_literal: true

module Gunter
  module View
    # Gunter text view template render
    module Text
      class << self
        def gunter_version(value)
          puts "gunter version: #{value}"
        end

        def template_added(value)
          puts "Template #{value[:name]} added!"
        end

        def templates(values)
          puts "Available templates:\n\n"
          values.each do |name, template|
            puts <<~OUT
              #{name}
                repository: #{template[:repo]}
                created at: #{template[:created_at].strftime('%Y-%m-%d %H:%M:%S')}

            OUT
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gunter-0.1.0 lib/gunter/view/text.rb