class Gluer::RegistrationPool
Attributes
registrations[R]
Public Class Methods
new()
click to toggle source
# File lib/gluer/registration_pool.rb, line 3 def initialize clear end
Public Instance Methods
add(registration)
click to toggle source
# File lib/gluer/registration_pool.rb, line 15 def add(registration) registrations.push(registration) end
clear()
click to toggle source
# File lib/gluer/registration_pool.rb, line 23 def clear @registrations = [] end
commit()
click to toggle source
# File lib/gluer/registration_pool.rb, line 7 def commit registrations.each(&:commit) end
replace(registration_pool)
click to toggle source
# File lib/gluer/registration_pool.rb, line 19 def replace(registration_pool) @registrations = registration_pool.registrations end
rollback()
click to toggle source
# File lib/gluer/registration_pool.rb, line 11 def rollback registrations.each(&:rollback) end