Sha256: 107f9f38d9f46b137bd82123eb2b5c7a1f70bfac7dfe15847eb2332f44cbe156
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
module Inky # @return [Inky::Configuration] Inky's current configuration def self.configuration @configuration ||= Configuration.new end # Set Inky's configuration # @param config [Inky::Configuration] def self.configuration=(config) @configuration = config end # Modify Inky's current configuration # @yieldparam [Inky::Configuration] config current Inky config # ``` # Inky.configure do |config| # config.template_engine = :slim # end # ``` def self.configure yield configuration end class Configuration attr_accessor :template_engine def initialize @template_engine = :erb end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inky-rb-1.3.7.2 | lib/inky/configuration.rb |
inky-rb-1.3.7.1 | lib/inky/configuration.rb |