Sha256: 2db75a3fdc9c57833e23b8eb8c83d5eccceae4c03c5a36986c5fb7d9e0a48bf9
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
module Rubycritic class Configuration attr_reader :root attr_accessor :source_control_system, :mode, :deduplicate_symlinks def set(options) self.mode = options[:mode] || :default self.root = options[:root] || "tmp/rubycritic" self.deduplicate_symlinks = options[:deduplicate_symlinks] || false end def root=(path) @root = File.expand_path(path) end end module Config def self.configuration @configuration ||= Configuration.new end def self.set(options = {}) configuration.set(options) end def self.method_missing(method, *args, &block) configuration.public_send(method, *args, &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-1.3.0 | lib/rubycritic/configuration.rb |