Exception: Kuby::Docker::MissingTagError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/kuby/docker/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ MissingTagError

Returns a new instance of MissingTagError.



17
18
19
20
# File 'lib/kuby/docker/errors.rb', line 17

def initialize(tag)
  @tag = tag
  @message = T.let(@message, T.nilable(String))
end

Instance Attribute Details

#tagObject (readonly)

Returns the value of attribute tag.



14
15
16
# File 'lib/kuby/docker/errors.rb', line 14

def tag
  @tag
end

Instance Method Details

#messageObject



23
24
25
# File 'lib/kuby/docker/errors.rb', line 23

def message
  @message ||= "Could not find tag '#{tag}'."
end