class Bovem::Shell

A utility class for most common shell operation.

@attribute console

@return [Console] A console instance.

@attribute [r] i18n

@return [I18n] A i18n helper.

Attributes

console[RW]
i18n[R]

Public Class Methods

instance() click to toggle source

Returns a unique instance for Shell.

@return [Shell] A new instance.

# File lib/bovem/shell.rb, line 515
def self.instance
  @instance ||= Bovem::Shell.new
end
new() click to toggle source

Initializes a new Shell.

# File lib/bovem/shell.rb, line 520
def initialize
  @console = Bovem::Console.instance
  @i18n = Bovem::I18n.new(root: "bovem.shell", path: Bovem::Application::LOCALE_ROOT)
end