Class: Ruboclean::StreamWriter
- Inherits:
-
Object
- Object
- Ruboclean::StreamWriter
- Defined in:
- lib/ruboclean/stream_writer.rb
Overview
Orders the items within the groups alphabetically
Instance Method Summary collapse
-
#initialize(content, options:) ⇒ StreamWriter
constructor
A new instance of StreamWriter.
- #write! ⇒ Object
Constructor Details
#initialize(content, options:) ⇒ StreamWriter
Returns a new instance of StreamWriter.
6 7 8 9 |
# File 'lib/ruboclean/stream_writer.rb', line 6 def initialize(content, options:) @content = content @options = end |
Instance Method Details
#write! ⇒ Object
11 12 13 14 15 |
# File 'lib/ruboclean/stream_writer.rb', line 11 def write! .output_stream.write(content) unless .verify? content end |