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.


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

def initialize
  @namespaces = {}
end

Instance Method Details

#each(&block) ⇒ Object


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

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

#namesObject


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

def names
  @namespaces.keys
end