Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
improved style
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed May 13, 2014
1 parent 58e4af8 commit aef636e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def self.new_for(command_name)
end

private

def initialize
end

Expand Down
2 changes: 2 additions & 0 deletions active_domain/lib/active_domain/autoload.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module ActiveDomain
module Autoload
include ActiveEvent::Support::Autoload

private

def self.dir_names
%W(domain/command_processors domain/validations domain/models domain/projections)
end
Expand Down
2 changes: 1 addition & 1 deletion active_domain/lib/active_domain/projection_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.invoke(event)

def invoke(event)
event_type = event.class.name.to_s
return unless handlers.has_key? event_type
return unless handlers.key? event_type
handlers[event_type].each do |handler_method|
handler_method.owner.new.send handler_method.name, event
end
Expand Down
2 changes: 2 additions & 0 deletions active_event/lib/active_event/autoload.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module ActiveEvent
module Autoload
include ActiveEvent::Support::Autoload

private

def self.dir_names
%W(app/commands app/validations app/events)
end
Expand Down
1 change: 1 addition & 0 deletions active_event/lib/active_event/event_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def store_infos
end

private

attr_writer :store_infos
end
end
1 change: 1 addition & 0 deletions active_event/lib/active_event/support/autoloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def self.reload(name, path)
end

private

def self.get_module_name(path)
segments = path.split('/')
seg = if 1 == (segments.length - 2) - (segments.index('app') || segments.index('domain')) # no namespace
Expand Down
1 change: 1 addition & 0 deletions active_event/lib/active_event/validations_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def self.build
end

private

cattr_accessor :bindings
self.bindings = []
end
Expand Down
2 changes: 2 additions & 0 deletions active_projection/lib/active_projection/autoload.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module ActiveProjection
module Autoload
include ActiveEvent::Support::Autoload

private

def self.dir_names
%W(app/models app/projections)
end
Expand Down
1 change: 1 addition & 0 deletions active_projection/lib/active_projection/projection_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def invoke(event, headers)
end

private

attr_accessor :handlers
attr_writer :projection_id

Expand Down

0 comments on commit aef636e

Please sign in to comment.