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
-
.adapter ⇒ Object
Returns the value of attribute adapter.
- .logger ⇒ Object
-
.model ⇒ Object
Returns the value of attribute model.
-
.watcher ⇒ Object
Returns the value of attribute watcher.
Class Method Summary collapse
Class Attribute Details
.adapter ⇒ Object
Returns the value of attribute adapter.
9 10 11 |
# File 'lib/casbin-ruby/config.rb', line 9 def adapter @adapter end |
.logger ⇒ Object
15 16 17 |
# File 'lib/casbin-ruby/config.rb', line 15 def logger @logger ||= ::Logger.new($stdout, level: :error) end |
.model ⇒ Object
Returns the value of attribute model.
9 10 11 |
# File 'lib/casbin-ruby/config.rb', line 9 def model @model end |
.watcher ⇒ Object
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
11 12 13 |
# File 'lib/casbin-ruby/config.rb', line 11 def setup yield self end |