Class: Getto::Roda::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/getto/roda/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (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