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
Constructor Details
#initialize(command, version, required) ⇒ VersionTooLow
Returns a new instance of VersionTooLow.
18 19 20 21 22 |
# File 'lib/braid/operations.rb', line 18 def initialize(command, version, required) @command = command @version = version.to_s.split("\n").first @required = required end |
Instance Method Details
#message ⇒ Object
24 25 26 |
# File 'lib/braid/operations.rb', line 24 def "#{@command} version too low: #{@version}. #{@required} needed." end |