Module: Policygen

Defined in:
lib/policygen.rb,
lib/policygen/railtie.rb,
lib/policygen/sinatra.rb,
lib/policygen/version.rb,
lib/policygen/renderer.rb,
lib/policygen/css/classes.rb,
lib/policygen/css/tailwind.rb,
lib/policygen/view_helpers.rb,
lib/policygen/configuration.rb,
lib/generators/policygen/install_generator.rb

Overview

Policygen gem namespace

Defined Under Namespace

Modules: Css, Generators, Sinatra, ViewHelpers Classes: Configuration, Error, Railtie, Renderer

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configObject

Returns Policygen gem configuration



10
11
12
# File 'lib/policygen.rb', line 10

def self.config
  @config ||= Configuration.new
end

.configure {|Configuration| ... } ⇒ Object

Configures Policygen gem

Examples:


Policygen.configure do |config|
  config.policy_path = "app/policies"
end

Yields:



21
22
23
# File 'lib/policygen.rb', line 21

def self.configure
  yield config
end