Sha256: 47c83285a996644080eb6f4ed1164759f10d633bd5f25184427fd448dbd56b51
Contents?: true
Size: 441 Bytes
Versions: 18
Compression:
Stored size: 441 Bytes
Contents
module GridGenerator module Svg class Style def initialize(fill: , stroke: '#404040', stroke_width: 1, opacity: 1) @fill = fill @stroke = stroke @stroke_width = stroke_width @opacity = opacity end attr_reader :fill, :stroke, :stroke_width, :opacity def to_s "fill:#{fill};stroke:#{stroke};stroke-width:#{stroke_width};opacity:#{opacity};" end end end end
Version data entries
18 entries across 18 versions & 1 rubygems