Class: Donjon::Shell
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Donjon::Shell
- Includes:
- Singleton
- Defined in:
- lib/donjon/shell.rb
Instance Method Summary collapse
-
#initialize ⇒ Shell
constructor
A new instance of Shell.
Constructor Details
#initialize ⇒ Shell
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 |