Sha256: d1c1c69f6c7a504a32a9db9fe58123b1ad291b90a35e5b80d3e6b1e274b340e4
Contents?: true
Size: 782 Bytes
Versions: 4
Compression:
Stored size: 782 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
4 entries across 4 versions & 1 rubygems