Method: Pageflow::Admin::Tab#initialize
- Defined in:
- lib/pageflow/admin/tab.rb
#initialize(options, resource = nil) ⇒ Tab
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Tab.
7 8 9 10 11 12 13 14 |
# File 'lib/pageflow/admin/tab.rb', line 7 def initialize(, resource = nil) @name = [:name] @component = [:component] @required_role = [:required_role] @required_account_role = [:required_account_role] @admin_only = [:admin_only] @resource = resource end |