Sha256: f16effd16f756e230aa5b3d3804b4b42fbcb2a1a2c40212168f9b0b648778e1b
Contents?: true
Size: 1.73 KB
Versions: 11
Compression:
Stored size: 1.73 KB
Contents
require 'tomograph' module Fitting class Configuration class Legacy attr_accessor :apib_path, :drafter_yaml_path, :crafter_apib_path, :crafter_yaml_path, :drafter_4_apib_path, :drafter_4_yaml_path, :strict, :prefix, :white_list, :resource_white_list, :ignore_list, :include_resources, :include_actions def initialize @strict = false @prefix = '' @ignore_list = [] end def tomogram @tomogram ||= if @crafter_apib_path || @crafter_yaml_path Tomograph::Tomogram.new( prefix: @prefix, crafter_apib_path: @crafter_apib_path, crafter_yaml_path: @crafter_yaml_path ) elsif @drafter_4_apib_path || @drafter_4_yaml_path Tomograph::Tomogram.new( prefix: @prefix, drafter_4_apib_path: @drafter_4_apib_path, drafter_4_yaml_path: @drafter_4_yaml_path ) else Tomograph::Tomogram.new( prefix: @prefix, apib_path: @apib_path, drafter_yaml_path: @drafter_yaml_path ) end end def title 'fitting' end def stats_path 'fitting/stats' end def not_covered_path 'fitting/not_covered' end end end end
Version data entries
11 entries across 11 versions & 1 rubygems