Class: ActiveAdmin::Namespace::Store

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/active_admin/namespace.rb

Instance Method Summary collapse

Constructor Details

#initializeStore

Returns a new instance of Store.


234
235
236
# File 'lib/active_admin/namespace.rb', line 234

def initialize
  @namespaces = {}
end

Instance Method Details

#each(&block) ⇒ Object


238
239
240
# File 'lib/active_admin/namespace.rb', line 238

def each(&block)
  @namespaces.values.each(&block)
end

#namesObject


242
243
244
# File 'lib/active_admin/namespace.rb', line 242

def names
  @namespaces.keys
end