Class: Outil::Decorators::NameSpace
- Inherits:
-
Object
- Object
- Outil::Decorators::NameSpace
- Defined in:
- lib/outil/decorators.rb
Instance Method Summary collapse
- #call(this, *args, &blk) ⇒ Object
-
#initialize(namespace) ⇒ NameSpace
constructor
A new instance of NameSpace.
Constructor Details
#initialize(namespace) ⇒ NameSpace
Returns a new instance of NameSpace.
15 16 17 |
# File 'lib/outil/decorators.rb', line 15 def initialize(namespace) @namespace = namespace end |
Instance Method Details
#call(this, *args, &blk) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/outil/decorators.rb', line 19 def call(this, *args, &blk) # TODO # Intended behavior is to register the decorated # method under a given namespace, so you can # have two methods named the same thing, etc. this.call(*args, &blk) end |