Method: God::Timeline#push
- Defined in:
- lib/god/timeline.rb
#push(val) ⇒ Object Also known as: <<
Push a value onto the Timeline
+val+ is the value to push
Returns Timeline
17 18 19 20 |
# File 'lib/god/timeline.rb', line 17 def push(val) self.concat([val]) shift if size > @max_size end |