class Undo::Config

Public Instance Methods

filter(options) click to toggle source
# File lib/undo/config.rb, line 18
def filter(options)
  attribute_names = attribute_set.map(&:name)
  options.reject { |key, _| attribute_names.include? key.to_sym }
end
with(attribute_updates = {}) click to toggle source
# File lib/undo/config.rb, line 14
def with(attribute_updates = {})
  self.class.new attributes.merge attribute_updates
end

Private Instance Methods

default_uuid_generator() click to toggle source
# File lib/undo/config.rb, line 24
def default_uuid_generator
  -> object { SecureRandom.uuid }
end