Class: AdminTools::Configuration
- Inherits:
-
Object
- Object
- AdminTools::Configuration
- Defined in:
- lib/admin_tools/configuration.rb
Instance Attribute Summary collapse
-
#admin_method ⇒ Object
Returns the value of attribute admin_method.
-
#css_class ⇒ Object
Returns the value of attribute css_class.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#wrapper_element ⇒ Object
Returns the value of attribute wrapper_element.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/admin_tools/configuration.rb', line 7 def initialize @current_user_method = :current_user @admin_method = :admin? @css_class = "admin-tools" @wrapper_element = :div end |
Instance Attribute Details
#admin_method ⇒ Object
Returns the value of attribute admin_method.
5 6 7 |
# File 'lib/admin_tools/configuration.rb', line 5 def admin_method @admin_method end |
#css_class ⇒ Object
Returns the value of attribute css_class.
5 6 7 |
# File 'lib/admin_tools/configuration.rb', line 5 def css_class @css_class end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
5 6 7 |
# File 'lib/admin_tools/configuration.rb', line 5 def current_user_method @current_user_method end |
#wrapper_element ⇒ Object
Returns the value of attribute wrapper_element.
5 6 7 |
# File 'lib/admin_tools/configuration.rb', line 5 def wrapper_element @wrapper_element end |