Module: Casbin::Config

Defined in:
lib/casbin-ruby/config.rb,
lib/casbin-ruby/config/config.rb

Defined Under Namespace

Classes: Config

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.adapterObject

Returns the value of attribute adapter.



9
10
11
# File 'lib/casbin-ruby/config.rb', line 9

def adapter
  @adapter
end

.loggerObject



15
16
17
# File 'lib/casbin-ruby/config.rb', line 15

def logger
  @logger ||= ::Logger.new($stdout, level: :error)
end

.modelObject

Returns the value of attribute model.



9
10
11
# File 'lib/casbin-ruby/config.rb', line 9

def model
  @model
end

.watcherObject

Returns the value of attribute watcher.



9
10
11
# File 'lib/casbin-ruby/config.rb', line 9

def watcher
  @watcher
end

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/casbin-ruby/config.rb', line 11

def setup
  yield self
end