Sha256: 5bd0c50be6dedc34c0067902ff5b1a5bf35f1a44ea5a4c53f488724b58c0f90e

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

module Cmdlet
  # base cmdlet provides an interface for cmdlets
  class BaseCmdlet
    def call(value)
      value
    end
    alias parse call

    # String tokenizer will clean up a string so that
    # all sorts of case formatted strings can be
    # represented in a consistent fashion
    def tokenizer
      @_tokenizer ||= KConfig.configuration.cmdlet.tokenizer
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmdlet-0.6.1 lib/cmdlet/base_cmdlet.rb