Class: Hecks::Router::NamespaceInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/hecks/router/namespace_installer.rb

Overview

Installs optional Ruby syntax over an already-loaded router. FQN resolution stays in Router; this object only adapts it to constants and method calls.

Defined Under Namespace

Classes: OptionsProxy

Instance Method Summary collapse

Constructor Details

#initialize(router) ⇒ NamespaceInstaller

Returns a new instance of NamespaceInstaller.



41
42
43
# File 'lib/hecks/router/namespace_installer.rb', line 41

def initialize(router)
  @router = router
end

Instance Method Details

#install!Object



45
46
47
48
49
50
# File 'lib/hecks/router/namespace_installer.rb', line 45

def install!
  current_entries.each { |entry| install_namespace_entry(entry) }
  install_shortcuts!
  install_aggregate_doors!
  self
end