Class: Pippi::Context
- Inherits:
-
Object
- Object
- Pippi::Context
- Defined in:
- lib/pippi/context.rb
Defined Under Namespace
Classes: DebugLogger, NullLogger
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#debug_logger ⇒ Object
readonly
Returns the value of attribute debug_logger.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
21 22 23 24 25 26 27 28 |
# File 'lib/pippi/context.rb', line 21 def initialize @report = Pippi::Report.new @debug_logger = if ENV['PIPPI_DEBUG'] Pippi::Context::DebugLogger.new else Pippi::Context::NullLogger.new end end |
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks.
4 5 6 |
# File 'lib/pippi/context.rb', line 4 def checks @checks end |
#debug_logger ⇒ Object (readonly)
Returns the value of attribute debug_logger.
19 20 21 |
# File 'lib/pippi/context.rb', line 19 def debug_logger @debug_logger end |
#report ⇒ Object (readonly)
Returns the value of attribute report.
19 20 21 |
# File 'lib/pippi/context.rb', line 19 def report @report end |