Class: Graphwerk::DeprecatedReferencesLoader
- Inherits:
-
Object
- Object
- Graphwerk::DeprecatedReferencesLoader
- Extended by:
- T::Sig
- Defined in:
- lib/graphwerk/deprecated_references_loader.rb
Instance Method Summary collapse
-
#initialize(package, root_path) ⇒ DeprecatedReferencesLoader
constructor
A new instance of DeprecatedReferencesLoader.
- #load ⇒ Object
Constructor Details
#initialize(package, root_path) ⇒ DeprecatedReferencesLoader
Returns a new instance of DeprecatedReferencesLoader.
9 10 11 12 |
# File 'lib/graphwerk/deprecated_references_loader.rb', line 9 def initialize(package, root_path) @package = package @root_path = root_path end |
Instance Method Details
#load ⇒ Object
15 16 17 18 19 |
# File 'lib/graphwerk/deprecated_references_loader.rb', line 15 def load return [] if !deprecated_references_file.exist? (YAML.load_file(deprecated_references_file) || {}).keys end |