Class: Conjure::Log
- Inherits:
-
Object
- Object
- Conjure::Log
- Defined in:
- lib/conjure/log.rb
Class Attribute Summary collapse
-
.capture ⇒ Object
Returns the value of attribute capture.
-
.history ⇒ Object
readonly
Returns the value of attribute history.
-
.level ⇒ Object
Returns the value of attribute level.
Class Method Summary collapse
Class Attribute Details
.capture ⇒ Object
Returns the value of attribute capture.
5 6 7 |
# File 'lib/conjure/log.rb', line 5 def capture @capture end |
.history ⇒ Object (readonly)
Returns the value of attribute history.
6 7 8 |
# File 'lib/conjure/log.rb', line 6 def history @history end |
.level ⇒ Object
Returns the value of attribute level.
4 5 6 |
# File 'lib/conjure/log.rb', line 4 def level @level end |
Class Method Details
.clear ⇒ Object
22 23 24 |
# File 'lib/conjure/log.rb', line 22 def self.clear @history = "" end |
.debug(message) ⇒ Object
18 19 20 |
# File 'lib/conjure/log.rb', line 18 def self.debug() info if @level == :debug end |
.info(message) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/conjure/log.rb', line 9 def self.info() if @capture @history ||= "" @history << "#{}\n" else puts end end |