Array
Instantiate a new Timeline
+max_size+ is the maximum size to which the timeline should grow
Returns Timeline
# File lib/god/timeline.rb, line 8 def initialize(max_size) super() @max_size = max_size end
Push a value onto the Timeline
+val+ is the value to push
# File lib/god/timeline.rb, line 17 def push(val) self.concat([val]) shift if size > @max_size end
[Validate]
Generated with the Darkfish Rdoc Generator 2.