Class: Graphwerk::PackageTodoLoader
- Inherits:
-
Object
- Object
- Graphwerk::PackageTodoLoader
- Extended by:
- T::Sig
- Defined in:
- lib/graphwerk/package_todo_loader.rb
Instance Method Summary collapse
-
#initialize(package, root_path) ⇒ PackageTodoLoader
constructor
A new instance of PackageTodoLoader.
- #load ⇒ Object
Constructor Details
#initialize(package, root_path) ⇒ PackageTodoLoader
Returns a new instance of PackageTodoLoader.
9 10 11 12 |
# File 'lib/graphwerk/package_todo_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/package_todo_loader.rb', line 15 def load return [] if !package_todo_file.exist? (YAML.load_file(package_todo_file) || {}).keys end |