Sha256: fe4af1bda5056f98e89764fcaf630501b9652ded5a3c8954dac6ebdbc3b3e5a2
Contents?: true
Size: 779 Bytes
Versions: 9
Compression:
Stored size: 779 Bytes
Contents
MetricFu.lib_require { "templates/metrics_template" } module MetricFu::Templates class Configuration FILE_PREFIX = "file:/" def initialize @options = {} @options[:template_class] = MetricFu::Templates::MetricsTemplate @options[:darwin_txmt_protocol_no_thanks] = true # turning off syntax_highlighting may avoid some UTF-8 issues @options[:syntax_highlighting] = true @options[:link_prefix] = FILE_PREFIX end [:template_class, :link_prefix, :syntax_highlighting, :darwin_txmt_protocol_no_thanks].each do |option| define_method("#{option}=") do |arg| @options[option] = arg end end def option(name) @options.fetch(name.to_sym) { raise "No such template option: #{name}" } end end end
Version data entries
9 entries across 9 versions & 3 rubygems