Class: Outil::Decorators::NameSpace

Inherits:
Object
  • Object
show all
Defined in:
lib/outil/decorators.rb

Instance Method Summary collapse

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