Sha256: 7ce25bbc26f0a3dad447a4ad474455c8e1b41c22980d12622dff14a807746a2b
Contents?: true
Size: 817 Bytes
Versions: 7
Compression:
Stored size: 817 Bytes
Contents
module Source2Epub class Configuration attr_accessor :creator, :publisher, :published_date, :identifier def initialize @creator = "https://github.com/agilecreativity/source2epub" @publisher = "http://agilecreativity.com" @published_date = Time.now.strftime("%Y-%m-%d %H:%M:%S") @identifier = "https://agilecreativity.com/" end end class << self attr_accessor :configuration # Configure Source2Epub someplace sensible, like # # 'config/initializers/source2epub.rb' # # Source2Epub.configure do |config| # config.creator = ".." # end def configuration @configuration ||= Configuration.new end def configure yield(configuration) end end end
Version data entries
7 entries across 7 versions & 1 rubygems