Sha256: c314692e08890c8fdba8262c9cebad11690b606f028e445804e1aa8f7a56311e

Contents?: true

Size: 154 Bytes

Versions: 3

Compression:

Stored size: 154 Bytes

Contents

require 'sorted_set'


class Ollama::Utils::Tags < SortedSet
  def to_a
    super.map(&:to_s)
  end

  def to_s
    map { |t| '#%s' % t } * ' '
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ollama-ruby-0.6.0 lib/ollama/utils/tags.rb
ollama-ruby-0.5.0 lib/ollama/utils/tags.rb
ollama-ruby-0.4.0 lib/ollama/utils/tags.rb