Module: Smartdict::Commands::HasFormatList

Included in:
ListCommand, TranslateCommand
Defined in:
lib/smartdict/commands/has_format_list.rb

Overview

Extends help_message method to provide list of formats.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/smartdict/commands/has_format_list.rb', line 3

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    class << self
      alias_method_chain :help_message, :formats
    end
  end
end