Class: Fixturama::Changes::Chain::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/fixturama/changes/chain/actions.rb

Overview

Keep arguments of a message chain along with the corresponding actions

Instance Method Summary collapse

Instance Method Details

#nextObject



7
8
9
# File 'lib/fixturama/changes/chain/actions.rb', line 7

def next
  @list.count > 1 ? @list.pop : @list.first
end