Class: Utils::CommandParser::Output
- Inherits:
-
Object
- Object
- Utils::CommandParser::Output
- Defined in:
- lib/ngi/utils/command_parser.rb
Overview
Create an abstraction of puts so that we can test it
Instance Method Summary collapse
-
#initialize(str) ⇒ Output
constructor
A new instance of Output.
- #to_s ⇒ Object
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_s ⇒ Object
21 22 23 |
# File 'lib/ngi/utils/command_parser.rb', line 21 def to_s puts @str end |