Sha256: 2b320f0b54595750e9269ea1d7330f762c2f88d58e4fc7d958fda8d21f9d87fd
Contents?: true
Size: 650 Bytes
Versions: 12
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true # WorksCited Module module WorksCited def self.configure(configuration = WorksCited::Configuration.new) block_given? && yield(configuration) @configuration = configuration end def self.configuration @configuration ||= WorksCited::Configuration.new end # WorksCited Configuration class Configuration attr_accessor( :valid_citation_types, :valid_contributor_roles ) def initialize self.valid_citation_types = %w[book periodical electronic interview email tweet] self.valid_contributor_roles = %w[author editor compiler translator receiver] end end end
Version data entries
12 entries across 12 versions & 1 rubygems