module I18n::Tasks::Command::Commands::Meta
Public Instance Methods
Source
# File lib/i18n/tasks/command/commands/meta.rb, line 13 def config(opts = {}) cfg = i18n.config_for_inspect cfg = cfg.slice(*opts[:arguments]) if opts[:arguments].present? cfg = cfg.to_yaml cfg.sub!(/\A---\n/, '') cfg.gsub!(/^([^\s-].+?:)/, Rainbow('\1').cyan.bright) puts cfg end
Source
# File lib/i18n/tasks/command/commands/meta.rb, line 24 def gem_path puts I18n::Tasks.gem_path end
Source
# File lib/i18n/tasks/command/commands/meta.rb, line 30 def irb require 'i18n/tasks/console_context' ::I18n::Tasks::ConsoleContext.start end