Module: StateStore::BinaryStore::HumanizedArrayOperations

Includes:
Observable
Defined in:
lib/state_store/binary_store.rb

Instance Method Summary collapse

Instance Method Details

#add(*args) ⇒ Object



78
79
80
81
82
83
84
# File 'lib/state_store/binary_store.rb', line 78

def add(*args)
  changed
  args.each do |value|
    self << value
  end
  notify_observers(self)
end

#remove(*args) ⇒ Object



86
87
88
89
90
91
92
# File 'lib/state_store/binary_store.rb', line 86

def remove(*args)
  changed
  args.each do |value|
    self.delete(value)
  end
  notify_observers(self)
end