Exception: Braid::Operations::VersionTooLow

Inherits:
BraidError
  • Object
show all
Defined in:
lib/braid/operations.rb

Instance Method Summary collapse

Methods included from T::Sig

#sig

Constructor Details

#initialize(command, version, required) ⇒ VersionTooLow

Returns a new instance of VersionTooLow.



29
30
31
32
33
34
# File 'lib/braid/operations.rb', line 29

def initialize(command, version, required)
  @command  = command
  # TODO (typing): Probably should not be nilable
  @version  = T.let(version.to_s.split("\n").first, T.nilable(String))
  @required = required
end

Instance Method Details

#messageObject



37
38
39
# File 'lib/braid/operations.rb', line 37

def message
  "#{@command} version too low: #{@version}. #{@required} needed."
end