Class: Getto::Roda::Logger
- Inherits:
-
Object
- Object
- Getto::Roda::Logger
- Defined in:
- lib/getto/roda/logger.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/getto/roda/logger.rb', line 4 def data @data end |
Instance Method Details
#log(data) ⇒ Object
6 7 8 9 |
# File 'lib/getto/roda/logger.rb', line 6 def log(data) @data ||= [] @data.push data end |