Exception: Erector::Errors::RubyVersionNotSupported
- Defined in:
- lib/erector/errors.rb
Instance Method Summary collapse
-
#initialize(version_identifier, explanation = nil) ⇒ RubyVersionNotSupported
constructor
A new instance of RubyVersionNotSupported.
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 |