Module: I18n::Processes::Command::Commands::Meta
- Includes:
- I18n::Processes::Command::Collection
- Included in:
- I18n::Processes::Commands
- Defined in:
- lib/i18n/processes/command/commands/meta.rb
Instance Method Summary collapse
Methods included from I18n::Processes::Command::Collection
Instance Method Details
#config(opts = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/i18n/processes/command/commands/meta.rb', line 14 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 |
#gem_path ⇒ Object
25 26 27 |
# File 'lib/i18n/processes/command/commands/meta.rb', line 25 def gem_path puts I18n::Processes.gem_path end |
#irb ⇒ Object
31 32 33 34 |
# File 'lib/i18n/processes/command/commands/meta.rb', line 31 def irb require 'i18n/processes/console_context' ::I18n::Processes::ConsoleContext.start end |