Commit 928f395

mo khan <mo@mokhan.ca>
2014-03-22 04:00:25
rename shell view and presenter.
1 parent 5c9e7ae
Changed files (3)
lib/boot/container_configuration.rb
@@ -3,8 +3,8 @@ class ContainerConfiguration
 
   def self.run(container)
     container.register(:event_aggregator) { EventAggregator.new }.as_singleton
-    container.register(:shell) { |x| x.build(ApplicationShell) }.as_singleton
-    container.register(:shell_presenter) { |x| x.build(ApplicationShellPresenter) }.as_singleton
+    container.register(:shell) { |x| x.build(ShellView) }.as_singleton
+    container.register(:shell_presenter) { |x| x.build(ShellPresenter) }.as_singleton
     container.register(:application_controller) { |x| x.build(ApplicationController) }.as_singleton
     container.register(:stock_service) { |x| StockService.new }.as_singleton
     Spank::IOC.bind_to(container)
lib/presentation/presenters/application_shell_presenter.rb → lib/presentation/presenters/shell_presenter.rb
@@ -1,6 +1,6 @@
 require 'presenter'
 
-class ApplicationShellPresenter < Presenter
+class ShellPresenter < Presenter
   def initialize(shell, event_aggregator, stock_service)
     @view = shell
     @event_aggregator = event_aggregator
lib/presentation/windows/application_shell.rb → lib/presentation/windows/shell_view.rb
@@ -1,4 +1,4 @@
-class ApplicationShell
+class ShellView
   attr_reader :window, :menu_bar, :textbox
   attr_accessor :builder