Module: GitGed
- Defined in:
- lib/git-ged.rb,
lib/git-ged/cli.rb,
lib/git-ged/init.rb
Overview
internal support classes
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.0.4'
Class Attribute Summary collapse
-
.debug ⇒ Object
Returns the value of attribute debug.
-
.logger ⇒ Object
The standard
logger
for debugging git-ged calls - this defaults to a plain STDOUT logger.
Class Method Summary collapse
Class Attribute Details
.debug ⇒ Object
Returns the value of attribute debug.
34 35 36 |
# File 'lib/git-ged.rb', line 34 def debug @debug end |
.logger ⇒ Object
The standard logger
for debugging git-ged calls - this defaults to a plain STDOUT logger
43 44 45 |
# File 'lib/git-ged.rb', line 43 def logger @logger end |
Class Method Details
.log(str, &block) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/git-ged.rb', line 45 def log(str, &block) if block_given? logger.debug &block else logger.debug str end end |
.message(str) ⇒ Object
53 54 55 |
# File 'lib/git-ged.rb', line 53 def (str) logger.info str end |
.version ⇒ Object
30 31 32 |
# File 'lib/git-ged.rb', line 30 def version VERSION end |