Sha256: d5de73ac96e9be1c59422387ba47c9bf5ccbef2b8083bfe051a26512d2e92135

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

require Sassy.root.join('scss', 'is_scss')

module Sassy
  module SCSS
    class Declaration

      include IsSCSS

      def initialize(property, value)
        raise ArgumentError if [property, value].any?(&:blank?)
        @property = property
        @value = value
      end

      def to_scss
        "#{@property}: #{@value};"
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sassy-1.0.0 lib/sassy/scss/declaration.rb
sassy-0.0.3 lib/sassy/scss/declaration.rb
sassy-0.0.2 lib/sassy/scss/declaration.rb
sassy-0.0.1 lib/sassy/scss/declaration.rb