Sha256: d59d6efa3915b214957e8f7da0172d34bc972aa743b798d36965ec76f2f58b34

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

class Shoes
  module Common
    # Methods for objects with fill
    #
    # @note Including classes must provide `#style`
    module Fill
      DEFAULTS = {
        :fill   => Shoes::COLORS[:black]
      }

      def fill
        style[:fill]
      end

      def fill=(color)
        style[:fill] = color
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 lib/shoes/common/fill.rb