Class: Undo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/undo/config.rb

Instance Method Summary collapse

Instance Method Details

#with(attribute_updates = {}, &block) ⇒ Object



22
23
24
25
# File 'lib/undo/config.rb', line 22

def with(attribute_updates = {}, &block)
  return self if attribute_updates.empty?
  self.class.new attribute_set.get(self).merge(attribute_updates)
end