Class: TwitterCldr::Resources::ImportResolver

Inherits:
Object
  • Object
show all
Includes:
TSort
Defined in:
lib/twitter_cldr/resources/import_resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(importers = Resources.importer_classes_for_ruby_engine, options = {}) ⇒ ImportResolver

Returns a new instance of ImportResolver.



10
11
12
13
# File 'lib/twitter_cldr/resources/import_resolver.rb', line 10

def initialize(importers = Resources.importer_classes_for_ruby_engine, options = {})
  @importers = importers
  @options = options
end

Instance Attribute Details

#importersObject (readonly)

Returns the value of attribute importers.



8
9
10
# File 'lib/twitter_cldr/resources/import_resolver.rb', line 8

def importers
  @importers
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/twitter_cldr/resources/import_resolver.rb', line 8

def options
  @options
end

Instance Method Details

#importObject



15
16
17
18
# File 'lib/twitter_cldr/resources/import_resolver.rb', line 15

def import
  check_unmet_deps
  import_in_order
end