Sha256: 486d198ac88ff43438f53dc42acc6a837bc8f09e3154829c3eb056aed5a06097

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

module Dox
  class Config
    attr_reader :header_file_path, :desc_folder_path
    attr_accessor :headers_whitelist

    def header_file_path=(file_path)
      raise(Errors::FileNotFoundError, file_path) unless File.exist?(file_path)
      @header_file_path = file_path
    end

    def desc_folder_path=(folder_path)
      raise(Errors::FolderNotFoundError, folder_path) unless Dir.exist?(folder_path)
      @desc_folder_path = folder_path
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dox-1.3.0 lib/dox/config.rb
dox-1.2.0 lib/dox/config.rb
dox-1.1.0 lib/dox/config.rb
dox-1.0.2 lib/dox/config.rb
dox-1.0.1 lib/dox/config.rb
dox-1.0.0 lib/dox/config.rb