Module: DslOrganizer::Container

Included in:
CommandContainer, ExportContainer
Defined in:
lib/dsl_organizer/container.rb

Overview

It defines methods to operate with executors.

Instance Method Summary collapse

Instance Method Details

#[](command = nil) ⇒ Object



8
9
10
# File 'lib/dsl_organizer/container.rb', line 8

def [](command = nil)
  real_container[command]
end

#[]=(command, executor) ⇒ Object



4
5
6
# File 'lib/dsl_organizer/container.rb', line 4

def []=(command, executor)
  real_container[command] = executor
end

#real_containerObject



12
13
14
# File 'lib/dsl_organizer/container.rb', line 12

def real_container
  @real_container ||= {}
end

#resetObject



16
17
18
# File 'lib/dsl_organizer/container.rb', line 16

def reset
  @real_container = {}
end