Class: DotCloud::Namespace
- Inherits:
-
Object
- Object
- DotCloud::Namespace
- Defined in:
- lib/dotcloud/dsl.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize ⇒ Namespace
constructor
A new instance of Namespace.
- #service(name, &block) ⇒ Object
Constructor Details
#initialize ⇒ Namespace
Returns a new instance of Namespace.
3 4 5 |
# File 'lib/dotcloud/dsl.rb', line 3 def initialize @services = {} end |
Instance Method Details
#[](name) ⇒ Object
11 12 13 |
# File 'lib/dotcloud/dsl.rb', line 11 def [](name) @services[name] end |
#service(name, &block) ⇒ Object
7 8 9 |
# File 'lib/dotcloud/dsl.rb', line 7 def service(name, &block) @services[name.to_s] = block end |