Class: ShouldClean::Simulator
- Inherits:
-
Object
- Object
- ShouldClean::Simulator
- Defined in:
- lib/should_clean/simulator.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(file_path, buffer = $stdout) ⇒ Simulator
constructor
A new instance of Simulator.
- #run ⇒ Object
Constructor Details
#initialize(file_path, buffer = $stdout) ⇒ Simulator
Returns a new instance of Simulator.
8 9 10 11 |
# File 'lib/should_clean/simulator.rb', line 8 def initialize(file_path, buffer = $stdout) @content = File.read(file_path) @buffer = buffer end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
6 7 8 |
# File 'lib/should_clean/simulator.rb', line 6 def buffer @buffer end |
#content ⇒ Object
Returns the value of attribute content.
6 7 8 |
# File 'lib/should_clean/simulator.rb', line 6 def content @content end |