Sha256: f88688c25e244e2f6fec31830772cffed4a8ae095ed1e4264af0b6ebc8f49982

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 Bytes

Contents

module Memo
  module Alias
    class Command
      def initialize(name)
        @name = name
        @config = Memo::Config.new
      end

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ememo-0.2.1 lib/memo/cli/arg/alias.rb
ememo-0.1.8 lib/memo/cli/arg/alias.rb
ememo-0.1.7 lib/memo/cli/arg/alias.rb
ememo-0.1.6 lib/memo/cli/arg/alias.rb
ememo-0.1.5 lib/memo/cli/arg/alias.rb
ememo-0.1.4 lib/memo/cli/arg/alias.rb
ememo-0.1.3 lib/memo/cli/arg/alias.rb
ememo-0.1.2 lib/memo/cli/arg/alias.rb