Sha256: 9344c8f24fee6b12c429e6b24c1be3e804cdd6cc6ece87bf9e91569a1da26c45
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module Stylegen class BaseElevatedColor def initialize(base, elevated) @base, @elevated = base, elevated end def to_s(struct_name, indent = 0) indent_prefix = " " * indent result = [] result << "#{struct_name}(" result << "#{indent_prefix} base: #{@base.to_s(struct_name, indent + 4)}," result << "#{indent_prefix} elevated: #{@elevated.to_s(struct_name, indent + 4)}" result << "#{indent_prefix})" result.join("\n") end end end
Version data entries
4 entries across 4 versions & 1 rubygems