Exception: Avmtrf1::Ruby::Gems::NotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/avmtrf1/ruby/gems/not_found_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependency) ⇒ NotFoundError

Returns a new instance of NotFoundError.


9
10
11
12
13
# File 'lib/avmtrf1/ruby/gems/not_found_error.rb', line 9

def initialize(dependency)
  @dependency = dependency
  super("Gem \"#{dependency.gem_name}\" not found" \
      " (Library required: \"#{dependency.lib_name}\")")
end

Instance Attribute Details

#dependencyObject (readonly)

Returns the value of attribute dependency.


7
8
9
# File 'lib/avmtrf1/ruby/gems/not_found_error.rb', line 7

def dependency
  @dependency
end