lib/fernet/configuration.rb in fernet-2.0.rc2 vs lib/fernet/configuration.rb in fernet-2.0

- old
+ new

@@ -1,9 +1,9 @@ require 'singleton' module Fernet - # Public - singleton class used to globally set various - # configuration defaults + # Public: singleton class used to globally set various + # configuration defaults class Configuration include Singleton # Public: Returns whether to enforce a message TTL (true or false) attr_accessor :enforce_ttl @@ -22,12 +22,12 @@ # Yields the singleton configuration object, where above defaults can be # overridden # # Examples # - # Fernet::Configuration.run do |config| - # config.enforce_ttl = false - # end + # Fernet::Configuration.run do |config| + # config.enforce_ttl = false + # end def self.run self.instance.enforce_ttl = true self.instance.ttl = 60 yield self.instance if block_given? end