Class: Utils::CommandParser::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/ngi/utils/command_parser.rb

Overview

Create an abstraction of puts so that we can test it

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Output

Returns a new instance of Output.



17
18
19
# File 'lib/ngi/utils/command_parser.rb', line 17

def initialize(str)
  @str = str
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/ngi/utils/command_parser.rb', line 21

def to_s
  puts @str
end