# File lib/term/ansicolor/rgb_color_metrics.rb, line 37 def self.metric(name) metric?(name) or raise ArgumentError, "unknown metric #{name.inspect}" end
# File lib/term/ansicolor/rgb_color_metrics.rb, line 41 def self.metric?(name) if const_defined?(name) const_get name end end
# File lib/term/ansicolor/rgb_color_metrics.rb, line 47 def self.metrics constants.map(&:to_sym) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.