Class: ActiveAdmin::PageConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/page_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}, &block) ⇒ PageConfig

Returns a new instance of PageConfig.



6
7
8
# File 'lib/active_admin/page_config.rb', line 6

def initialize(options = {}, &block)
  @options, @block = options, block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/active_admin/page_config.rb', line 4

def block
  @block
end

Instance Method Details

#[](key) ⇒ Object



10
11
12
# File 'lib/active_admin/page_config.rb', line 10

def [](key)
  @options[key]
end