Sha256: 3d3ea0c204f75e278056f12a19dbaa8087a2c2201e85875d3599ac38e3d6bfc4

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

module Sassy
  module SCSS
    module IsSCSS

      def self.included(base)
        base.send(:include, Comparable)
        base.send(:include, InstanceMethods)
      end

      module InstanceMethods
        def <=>(other)
          to_scss <=> other.to_scss
        end

        def eql?(other)
          to_scss.eql?(other.to_scss)
        end

        def hash
          to_scss.hash
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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