Class: Bake::Registry::BakefileLoader
- Inherits:
-
Object
- Object
- Bake::Registry::BakefileLoader
- Defined in:
- lib/bake/registry/bakefile_loader.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #each {|[]| ... } ⇒ Object
-
#initialize(path) ⇒ BakefileLoader
constructor
A new instance of BakefileLoader.
- #scopes_for(path) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ BakefileLoader
Returns a new instance of BakefileLoader.
11 12 13 |
# File 'lib/bake/registry/bakefile_loader.rb', line 11 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
19 20 21 |
# File 'lib/bake/registry/bakefile_loader.rb', line 19 def path @path end |
Instance Method Details
#each {|[]| ... } ⇒ Object
21 22 23 |
# File 'lib/bake/registry/bakefile_loader.rb', line 21 def each(&block) yield [] end |
#scopes_for(path) ⇒ Object
25 26 27 28 29 |
# File 'lib/bake/registry/bakefile_loader.rb', line 25 def scopes_for(path) if path == [] yield Scope.load(@path, []) end end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/bake/registry/bakefile_loader.rb', line 15 def to_s "#{self.class} #{@path}" end |