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

Version Path
grid_generator-0.6.7 lib/grid_generator/svg/style.rb
grid_generator-0.6.6 lib/grid_generator/svg/style.rb
grid_generator-0.6.5 lib/grid_generator/svg/style.rb
grid_generator-0.6.4 lib/grid_generator/svg/style.rb
grid_generator-0.6.3 lib/grid_generator/svg/style.rb
grid_generator-0.6.2 lib/grid_generator/svg/style.rb
grid_generator-0.6.1 lib/grid_generator/svg/style.rb
grid_generator-0.6.0 lib/grid_generator/svg/style.rb
grid_generator-0.5.3 lib/grid_generator/svg/style.rb
grid_generator-0.5.2 lib/grid_generator/svg/style.rb
grid_generator-0.5.1 lib/grid_generator/svg/style.rb
grid_generator-0.5.0 lib/grid_generator/svg/style.rb
grid_generator-0.4.5 lib/grid_generator/svg/style.rb
grid_generator-0.4.4 lib/grid_generator/svg/style.rb
grid_generator-0.4.3 lib/grid_generator/svg/style.rb
grid_generator-0.4.2 lib/grid_generator/svg/style.rb
grid_generator-0.4.1 lib/grid_generator/svg/style.rb
grid_generator-0.4.0 lib/grid_generator/svg/style.rb