Method: Lyp::DependencyResolver#initialize
- Defined in:
- lib/lyp/resolver.rb
#initialize(tree, opts = {}) ⇒ DependencyResolver
Returns a new instance of DependencyResolver.
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/lyp/resolver.rb', line 63 def initialize(tree, opts = {}) if tree.is_a?(String) @user_file = tree @tree = DependencyLeaf.new else @tree = tree end @opts = opts @ext_require = @opts[:ext_require] @queue = [] @processed_files = {} end |