Module: Lug::Standard::DeviceMethods
- Included in:
- Device
- Defined in:
- lib/lug/standard.rb
Instance Attribute Summary collapse
-
#level_threshold ⇒ Object
Returns the value of attribute level_threshold.
Instance Method Summary collapse
Instance Attribute Details
#level_threshold ⇒ Object
Returns the value of attribute level_threshold.
41 42 43 |
# File 'lib/lug/standard.rb', line 41 def level_threshold @level_threshold end |
Instance Method Details
#log(message, namespace = nil, level = nil) ⇒ Object Also known as: <<
43 44 45 46 |
# File 'lib/lug/standard.rb', line 43 def log(, namespace = nil, level = nil) = "#{LEVEL_TEXT[level]} #{}" if level super(, namespace) end |