Class: Uttk::Logger::Upper
Instance Method Summary collapse
-
#initialize(&block) ⇒ Upper
constructor
A new instance of Upper.
- #up ⇒ Object (also: #call, #[])
Constructor Details
#initialize(&block) ⇒ Upper
Returns a new instance of Upper.
146 147 148 149 |
# File 'lib/uttk/logger.rb', line 146 def initialize ( &block ) @called = false @block = block end |
Instance Method Details
#up ⇒ Object Also known as: call, []
150 151 152 153 154 |
# File 'lib/uttk/logger.rb', line 150 def up return if @called @called = true @block[] end |