Sha256: a1879df40ca216fc9d156e6a9c2670ec5ec32562bee11de8fc27f90751d81c68
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
module GridGenerator module Svg class Style def initialize(fill: , stroke: , 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grid_generator-0.3.3 | lib/grid_generator/svg/style.rb |
grid_generator-0.3.2 | lib/grid_generator/svg/style.rb |