class Me::Activation
Public Instance Methods
==(other)
click to toggle source
# File lib/me/activation.rb, line 13 def ==(other) return false unless other.is_a?(Activation) self.commands == other.commands end
_with_commands(commands)
click to toggle source
# File lib/me/activation.rb, line 18 def _with_commands(commands) @_commands = commands self end
build_view(view_factory)
click to toggle source
# File lib/me/activation.rb, line 5 def build_view(view_factory) view_factory.new(commands: commands) end
call()
click to toggle source
# File lib/me/activation.rb, line 9 def call fail end
Protected Instance Methods
commands()
click to toggle source
# File lib/me/activation.rb, line 25 def commands @_commands ||= [] end
Private Instance Methods
execute()
click to toggle source
# File lib/me/activation.rb, line 31 def execute commands.each(&executor.method(:call)) end
executor()
click to toggle source
# File lib/me/activation.rb, line 35 def executor @_executor ||= Registry.executor_factory.new end