Module: I18n::Tasks::Command::DSL

Included in:
Options::Common, Options::Data, Options::Locales, I18n::Tasks::Commands
Defined in:
lib/i18n/tasks/command/dsl.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
# File 'lib/i18n/tasks/command/dsl.rb', line 6

def self.included(base)
  base.module_eval do
    @dsl = Hash.new { |h, k| h[k] = {} }
    extend ClassMethods
  end
end

Instance Method Details

#t(*args, **kwargs) ⇒ Object



13
14
15
# File 'lib/i18n/tasks/command/dsl.rb', line 13

def t(*args, **kwargs)
  I18n.t(*args, **kwargs)
end