Class: Nanoc::Int::SiteLoader Private
- Inherits:
-
Object
- Object
- Nanoc::Int::SiteLoader
- Defined in:
- lib/nanoc/base/repos/site_loader.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .cwd_is_nanoc_site? ⇒ Boolean private
Instance Method Summary collapse
- #new_empty ⇒ Object private
- #new_from_cwd ⇒ Object private
- #new_with_config(hash) ⇒ Object private
Class Method Details
.cwd_is_nanoc_site? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 16 def self.cwd_is_nanoc_site? Nanoc::Int::ConfigLoader.cwd_is_nanoc_site? end |
Instance Method Details
#new_empty ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3 4 5 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 3 def new_empty site_from_config(Nanoc::Int::Configuration.new.with_defaults) end |
#new_from_cwd ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 11 def new_from_cwd site_from_config(Nanoc::Int::ConfigLoader.new.new_from_cwd) end |
#new_with_config(hash) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 7 def new_with_config(hash) site_from_config(Nanoc::Int::Configuration.new(hash).with_defaults) end |