Exception: Braid::Operations::VersionTooLow
- Inherits:
-
BraidError
- Object
- StandardError
- BraidError
- Braid::Operations::VersionTooLow
- Defined in:
- lib/braid/operations.rb
Instance Method Summary collapse
-
#initialize(command, version, required) ⇒ VersionTooLow
constructor
A new instance of VersionTooLow.
- #message ⇒ Object
Methods included from T::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
#message ⇒ Object
37 38 39 |
# File 'lib/braid/operations.rb', line 37 def "#{@command} version too low: #{@version}. #{@required} needed." end |