Class: MoulinRouge::Configuration
- Inherits:
-
Object
- Object
- MoulinRouge::Configuration
- Defined in:
- lib/moulin_rouge/configuration.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#model ⇒ Object
Returns the value of attribute model.
-
#model_instance ⇒ Object
Returns the value of attribute model_instance.
-
#path ⇒ Object
Returns the value of attribute path.
-
#test_method ⇒ Object
Returns the value of attribute test_method.
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 13 |
# File 'lib/moulin_rouge/configuration.rb', line 7 def initialize @path = "app/permissions/**/*.rb" @test_method = :is? @cache = true @model = nil @model_instance = :current_user end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
5 6 7 |
# File 'lib/moulin_rouge/configuration.rb', line 5 def cache @cache end |
#model ⇒ Object
Returns the value of attribute model.
5 6 7 |
# File 'lib/moulin_rouge/configuration.rb', line 5 def model @model end |
#model_instance ⇒ Object
Returns the value of attribute model_instance.
5 6 7 |
# File 'lib/moulin_rouge/configuration.rb', line 5 def model_instance @model_instance end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/moulin_rouge/configuration.rb', line 5 def path @path end |
#test_method ⇒ Object
Returns the value of attribute test_method.
5 6 7 |
# File 'lib/moulin_rouge/configuration.rb', line 5 def test_method @test_method end |