class Gluer::RegistrationCollection
Attributes
block[R]
context[R]
Public Class Methods
new(context, block)
click to toggle source
# File lib/gluer/registration_collection.rb, line 5 def initialize(context, block) @context = context @block = block end
Public Instance Methods
add(registration)
click to toggle source
# File lib/gluer/registration_collection.rb, line 16 def add(registration) registrations << registration end
each() { |registration| ... }
click to toggle source
# File lib/gluer/registration_collection.rb, line 10 def each registrations.clear dsl.instance_eval(&block) registrations.each { |registration| yield(registration) } end
Private Instance Methods
dsl()
click to toggle source
# File lib/gluer/registration_collection.rb, line 27 def dsl @dsl ||= DSL.new(context, self) end
registrations()
click to toggle source
# File lib/gluer/registration_collection.rb, line 23 def registrations @registrations ||= [] end