Sha256: af48e05acb1d1b0fe1465673854095a6bf94ee7f7bf467ec4673e7827d254577

Contents?: true

Size: 1.98 KB

Versions: 93

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

module SassC
  module Native
    class SassValue < FFI::Union; end

    SassTag = enum(
      :sass_boolean,
      :sass_number,
      :sass_color,
      :sass_string,
      :sass_list,
      :sass_map,
      :sass_null,
      :sass_error,
      :sass_warning
    )

    SassSeparator = enum(
      :sass_comma,
      :sass_space
    )

    class SassUnknown < FFI::Struct
      layout :tag, SassTag
    end

    class SassBoolean < FFI::Struct
      layout :tag, SassTag,
             :value, :bool
    end

    class SassNumber < FFI::Struct
      layout :tag, SassTag,
             :value, :double,
             :unit, :string
    end

    class SassColor < FFI::Struct
      layout :tag, SassTag,
             :r, :double,
             :g, :double,
             :b, :double,
             :a, :double
    end

    class SassString < FFI::Struct
      layout :tag, SassTag,
             :value, :string
    end

    class SassList < FFI::Struct
      layout :tag, SassTag,
             :separator, SassSeparator,
             :length, :size_t,
             :values, :pointer
    end

    class SassMapPair < FFI::Struct
      layout :key, SassValue.ptr,
             :value, SassValue.ptr
    end

    class SassMap < FFI::Struct
      layout :tag, SassTag,
             :length, :size_t,
             :pairs, SassMapPair.ptr
    end

    class SassNull < FFI::Struct
      layout :tag, SassTag
    end

    class SassError < FFI::Struct
      layout :tag, SassTag,
             :message, :string
    end

    class SassWarning < FFI::Struct
      layout :tag, SassTag,
             :message, :string
    end

    class SassValue # < FFI::Union
      layout :unknown, SassUnknown,
             :boolean, SassBoolean,
             :number, SassNumber,
             :color, SassColor,
             :string, SassString,
             :list, SassList,
             :map, SassMap,
             :null, SassNull,
             :error, SassError,
             :warning, SassWarning
    end
  end
end

Version data entries

93 entries across 77 versions & 7 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/sassc-2.4.0/lib/sassc/native/sass_value.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/sassc-2.4.0/lib/sassc/native/sass_value.rb
sassc-embedded-1.80.2 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.80.1 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.80.0 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.79.0 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.78.0 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/sassc-2.4.0/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.8 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.7 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.6 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.5 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.4 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.3 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.2 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.1 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.77.0 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.76.0 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.75.2 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb
sassc-embedded-1.75.1 vendor/github.com/sass/sassc-ruby/lib/sassc/native/sass_value.rb