Class: Memo::Alias::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/memo/cli/arg/alias.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Namespace

Returns a new instance of Namespace.



15
16
17
18
# File 'lib/memo/cli/arg/alias.rb', line 15

def initialize(name)
  @name = name
  @config = Memo::Config.new
end

Instance Method Details

#callObject



20
21
22
23
# File 'lib/memo/cli/arg/alias.rb', line 20

def call
  @config.namespace_alias[:"#{@name}"] ||
    @name
end