Exception: Erector::Errors::RubyVersionNotSupported

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/erector/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(version_identifier, explanation = nil) ⇒ RubyVersionNotSupported

Returns a new instance of RubyVersionNotSupported.



4
5
6
7
8
9
# File 'lib/erector/errors.rb', line 4

def initialize(version_identifier, explanation=nil)
  super [
    "Erector does not support Ruby version(s) #{version_identifier}.",
    explanation ? "The reason(s) are:\n#{explanation}" : nil
  ].compact.join("\n")
end