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.


253
254
255
# File 'lib/active_admin/namespace.rb', line 253

def initialize
  @namespaces = {}
end

Instance Method Details

#each(&block) ⇒ Object


257
258
259
# File 'lib/active_admin/namespace.rb', line 257

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

#namesObject


261
262
263
# File 'lib/active_admin/namespace.rb', line 261

def names
  @namespaces.keys
end