class Tempo::Views::ViewRecords::Container
Attributes
post[RW]
pre[RW]
type[RW]
Public Class Methods
new(options={})
click to toggle source
# File lib/tempo/views/view_records/container.rb, line 13 def initialize(options={}) # TODO: add error checking for pre and post, better handling nil values @pre = options.fetch( :pre, nil ) @post = options.fetch( :post, nil ) @type = "container" @collection = [] # handle records on init? Reporter.add_view_record self unless options[:postpone] end
Public Instance Methods
add(record)
click to toggle source
add a splat?
# File lib/tempo/views/view_records/container.rb, line 23 def add(record) @collection << record end
records()
click to toggle source
TODO: Implement pre and post method with logic to handle both
views reocrds and strings. See post in TimeRecordContainer for use case
# File lib/tempo/views/view_records/container.rb, line 31 def records @collection end