Class: ActiveAdmin::PageConfig
- Defined in:
- lib/active_admin/page_config.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(options = {}, &block) ⇒ PageConfig
constructor
A new instance of PageConfig.
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( = {}, &block) @options, @block = , block end |
Instance Attribute Details
#block ⇒ Object (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 |