Exception: Yoda::CoreImportError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/yoda/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ CoreImportError

Returns a new instance of CoreImportError.



25
26
27
28
# File 'lib/yoda/errors.rb', line 25

def initialize(name)
  @name = name
  super(msg)
end

Instance Attribute Details

#nameString (readonly)

Returns:

  • (String)


23
24
25
# File 'lib/yoda/errors.rb', line 23

def name
  @name
end

Instance Method Details

#msgObject



30
31
32
# File 'lib/yoda/errors.rb', line 30

def msg
  "Failed to import Ruby #{name} Library"
end