Exception: Gel::Error::MismatchRubyVersionError

Inherits:
UserError
  • Object
show all
Defined in:
lib/gel/error.rb

Instance Method Summary collapse

Methods inherited from UserError

#[], #inner_backtrace

Methods included from ReportableError

#details, #exit_code

Constructor Details

#initialize(running:, requested:) ⇒ MismatchRubyVersionError

Returns a new instance of MismatchRubyVersionError.



186
187
188
# File 'lib/gel/error.rb', line 186

def initialize(running:, requested:)
  super
end

Instance Method Details

#messageObject



190
191
192
# File 'lib/gel/error.rb', line 190

def message
  "Running ruby version #{self[:running].inspect} does not match requested #{self[:requested].inspect}"
end