Class: MoulinRouge::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/moulin_rouge/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
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

#cacheObject

Returns the value of attribute cache.



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

def cache
  @cache
end

#modelObject

Returns the value of attribute model.



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

def model
  @model
end

#model_instanceObject

Returns the value of attribute model_instance.



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

def model_instance
  @model_instance
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#test_methodObject

Returns the value of attribute test_method.



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

def test_method
  @test_method
end