Class: Smuggle::Exporter::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/smuggle/exporter/resolver.rb

Instance Method Summary collapse

Instance Method Details

#call(scope:) ⇒ Object



6
7
8
9
10
# File 'lib/smuggle/exporter/resolver.rb', line 6

def call(scope:)
  Object.const_get("#{scope.name}Exporter")
rescue NameError
  raise ExporterNotFound
end