Class: Docit::Generators::InstallGenerator::ShellOutput
- Inherits:
-
Object
- Object
- Docit::Generators::InstallGenerator::ShellOutput
- Defined in:
- lib/generators/docit/install/install_generator.rb
Instance Method Summary collapse
-
#initialize(shell) ⇒ ShellOutput
constructor
A new instance of ShellOutput.
- #print(msg) ⇒ Object
- #puts(msg = "") ⇒ Object
Constructor Details
#initialize(shell) ⇒ ShellOutput
Returns a new instance of ShellOutput.
190 191 192 |
# File 'lib/generators/docit/install/install_generator.rb', line 190 def initialize(shell) @shell = shell end |
Instance Method Details
#print(msg) ⇒ Object
198 199 200 |
# File 'lib/generators/docit/install/install_generator.rb', line 198 def print(msg) @shell.say(msg, nil, false) end |
#puts(msg = "") ⇒ Object
194 195 196 |
# File 'lib/generators/docit/install/install_generator.rb', line 194 def puts(msg = "") @shell.say(msg) end |