Class: Donjon::Shell

Inherits:
SimpleDelegator
  • Object
show all
Includes:
Singleton
Defined in:
lib/donjon/shell.rb

Instance Method Summary collapse

Constructor Details

#initializeShell

Returns a new instance of Shell.



9
10
11
12
13
14
15
16
# File 'lib/donjon/shell.rb', line 9

def initialize
  shell = if $stdout.tty?
    Thor::Shell::Color.new
  else
    Thor::Shell::Basic.new
  end
  super(shell)
end