Class: Memo::Alias::Command

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Command

Returns a new instance of Command.



4
5
6
7
# File 'lib/memo/cli/arg/alias.rb', line 4

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

Instance Method Details

#callObject



9
10
11
# File 'lib/memo/cli/arg/alias.rb', line 9

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