Module: LogMarker
- Defined in:
- lib/log_marker.rb,
lib/log_marker/config.rb,
lib/log_marker/version.rb
Constant Summary collapse
- MARK_METHODS =
%w(p pp puts)
- VERSION =
'0.1.3'
Class Attribute Summary collapse
-
.marker ⇒ Object
Returns the value of attribute marker.
-
.ml_alias ⇒ Object
Returns the value of attribute ml_alias.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.marker ⇒ Object
Returns the value of attribute marker.
5 6 7 |
# File 'lib/log_marker/config.rb', line 5 def marker @marker end |
.ml_alias ⇒ Object
Returns the value of attribute ml_alias.
5 6 7 |
# File 'lib/log_marker/config.rb', line 5 def ml_alias @ml_alias end |
Class Method Details
.config {|_self| ... } ⇒ Object
7 8 9 |
# File 'lib/log_marker/config.rb', line 7 def config yield self end |
Instance Method Details
#logging_with_marker(&block) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/log_marker.rb', line 18 def logging_with_marker(&block) puts marker result = block.call puts marker.reverse result end |