Sha256: 41ca61bd7988300920f344be92d088272b99817a69ce91b6ab178cf3b0b033d7
Contents?: true
Size: 519 Bytes
Versions: 5
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true module Stylegen class LightDarkColor def initialize(light, dark) @light, @dark = light, dark end def to_s(struct_name, indent = 0) indent_prefix = " " * indent result = [] result << "#{struct_name}(" result << "#{indent_prefix} light: #{@light.to_s(struct_name, indent + 4)}," result << "#{indent_prefix} dark: #{@dark.to_s(struct_name, indent + 4)}" result << "#{indent_prefix})" result.join("\n") end end end
Version data entries
5 entries across 5 versions & 1 rubygems