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(silent) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(silent) ⇒ Logger
Returns a new instance of Logger.
5 6 7 |
# File 'lib/peacock/logger.rb', line 5 def initialize(silent) @silent = silent 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 @silent end |
#ignore(string) ⇒ Object
9 10 11 |
# File 'lib/peacock/logger.rb', line 9 def ignore(string) puts "added #{string} to .gitignore" unless @silent end |