class Dmatrix::ImageTag
Constants
- INVALID_CHARS
Attributes
values[R]
Public Class Methods
new(values:)
click to toggle source
# File lib/dmatrix/image_tag.rb, line 3 def initialize(values:) @values = values end
Public Instance Methods
tag()
click to toggle source
# File lib/dmatrix/image_tag.rb, line 7 def tag "#{repo}:#{combination_tag}" end
Private Instance Methods
combination_tag()
click to toggle source
# File lib/dmatrix/image_tag.rb, line 22 def combination_tag values.join("-").gsub(INVALID_CHARS, "-") end
repo()
click to toggle source
# File lib/dmatrix/image_tag.rb, line 18 def repo File.split(Dir.pwd).last end