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
- #[](command = nil) ⇒ Object
- #[]=(command, executor) ⇒ Object
- #real_container ⇒ Object
- #reset ⇒ Object
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_container ⇒ Object
12 13 14 |
# File 'lib/dsl_organizer/container.rb', line 12 def real_container @real_container ||= {} end |
#reset ⇒ Object
16 17 18 |
# File 'lib/dsl_organizer/container.rb', line 16 def reset @real_container = {} end |