Class: Peacock::Logger
- Inherits:
-
Object
- Object
- Peacock::Logger
- Defined in:
- lib/peacock/logger.rb
Instance Method Summary collapse
- #extract(string) ⇒ Object
- #ignore(string) ⇒ Object
-
#initialize(verbose) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(verbose) ⇒ Logger
Returns a new instance of Logger.
5 6 7 |
# File 'lib/peacock/logger.rb', line 5 def initialize(verbose) @verbose = verbose end |
Instance Method Details
#extract(string) ⇒ Object
13 14 15 |
# File 'lib/peacock/logger.rb', line 13 def extract(string) puts "removed #{string} from .gitignore" unless @verbose end |
#ignore(string) ⇒ Object
9 10 11 |
# File 'lib/peacock/logger.rb', line 9 def ignore(string) puts "added #{string} to .gitignore" unless @verbose end |