Method: NanDoc::Helpers::NanDocHelpers::SiteMap.singleton
- Defined in:
- lib/nandoc/helpers/site-map.rb
.singleton(name, binding, &block) ⇒ 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.
29 30 31 32 33 34 35 |
# File 'lib/nandoc/helpers/site-map.rb', line 29 def singleton(name, binding, &block) @singletons[name] ||= begin sing = new sing.init_root(binding, &block) sing end end |