Class: AdminTools::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/admin_tools/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_methodObject

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_classObject

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_methodObject

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_elementObject

Returns the value of attribute wrapper_element.



5
6
7
# File 'lib/admin_tools/configuration.rb', line 5

def wrapper_element
  @wrapper_element
end