Exception: Lithic::Errors::MissingDependencyError
- Defined in:
- lib/lithic/errors.rb
Instance Method Summary collapse
-
#initialize(gem_name:, feature:) ⇒ MissingDependencyError
constructor
private
A new instance of MissingDependencyError.
Constructor Details
#initialize(gem_name:, feature:) ⇒ MissingDependencyError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MissingDependencyError.
233 234 235 236 237 238 239 240 |
# File 'lib/lithic/errors.rb', line 233 def initialize(gem_name:, feature:) = [ "The '#{gem_name}' gem is required to use #{feature}.", "Install it with: gem install #{gem_name}", "Or add it to your Gemfile: gem '#{gem_name}'" ].join("\n") super() end |