class Logsly::Colors
Attributes
build[R]
name[R]
Public Class Methods
new(name, &build)
click to toggle source
# File lib/logsly/colors.rb, line 16 def initialize(name, &build) @name, @build = name, build end
Public Instance Methods
to_scheme(*args)
click to toggle source
# File lib/logsly/colors.rb, line 20 def to_scheme(*args) "#{@name}-#{args.map{|a| a.object_id}.join('-')}".tap do |scheme_name| Logsly::Logging182.color_scheme(scheme_name, ColorsData.new(*args, &@build).to_scheme_opts) end end