class BenchmarkToJs::Configuration
Attributes
orange_threshold[RW]
pretty[RW]
red_threshold[RW]
run_in_environments[RW]
tag_options[RW]
Public Class Methods
new()
click to toggle source
# File lib/benchmark_to_js/configuration.rb, line 5 def initialize self.run_in_environments = [:development] self.pretty = true self.orange_threshold = 100 self.red_threshold = 500 self.tag_options = nil end
Public Instance Methods
run?()
click to toggle source
# File lib/benchmark_to_js/configuration.rb, line 13 def run? @run ||= begin defined?(Rails) && Array(self.run_in_environments).map(&:to_s).include?(Rails.env) end end