module I18n::Tasks

Constants

VERSION

Attributes

verbose[W]

Public Class Methods

add_ast_matcher(matcher_class_name) click to toggle source

Add AST-matcher to i18n-tasks

@param matcher_class_name @return self

# File lib/i18n/tasks.rb, line 42
def add_ast_matcher(matcher_class_name)
  matchers = I18n::Tasks::Configuration::DEFAULTS[:search][:ast_matchers]
  matchers << matcher_class_name
  matchers.uniq!
  self
end
add_commands(commands_module) click to toggle source

Add commands to i18n-tasks

@param commands_module [Module] @return self

# File lib/i18n/tasks.rb, line 33
def add_commands(commands_module)
  ::I18n::Tasks::Commands.send :include, commands_module
  self
end
add_scanner(scanner_class_name, scanner_opts = {}) click to toggle source

Add a scanner to the default configuration.

@param scanner_class_name [String] @param scanner_opts [Hash] @return self

# File lib/i18n/tasks.rb, line 22
def add_scanner(scanner_class_name, scanner_opts = {})
  scanners = I18n::Tasks::Configuration::DEFAULTS[:search][:scanners]
  scanners << [scanner_class_name, scanner_opts]
  scanners.uniq!
  self
end
gem_path() click to toggle source
# File lib/i18n/tasks.rb, line 7
def gem_path
  File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
end
verbose?() click to toggle source
# File lib/i18n/tasks.rb, line 11
def verbose?
  @verbose
end