Sha256: c3f3708fcded3c75293eb0c871d7e452dfa7f00b74ac31831e05791736338239

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

module SassC
  module Script
    def self.custom_functions
      Functions.instance_methods.select do |function|
        Functions.public_method_defined?(function)
      end
    end

    def self.formatted_function_name(function_name)
      params = Functions.instance_method(function_name).parameters
      params = params.map { |param_type, name| "$#{name}#{': null' if param_type == :opt}" }
                     .join(", ")

      "#{function_name}(#{params})"
    end

    module Value
    end
  end
end

require_relative "script/functions"
require_relative "script/value_conversion"

module Sass
  module Script
  end
end

require 'sass/util'
require 'sass/script/value/base'
require 'sass/script/value/string'
require 'sass/script/value/color'
require 'sass/script/value/bool'

SassC::Script::String = Sass::Script::Value::String
SassC::Script::Value::String = Sass::Script::Value::String

SassC::Script::Color = Sass::Script::Value::Color
SassC::Script::Value::Color = Sass::Script::Value::Color

SassC::Script::Bool = Sass::Script::Value::Bool
SassC::Script::Value::Bool = Sass::Script::Value::Bool

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sassc-1.11.2 lib/sassc/script.rb
sassc-1.11.1 lib/sassc/script.rb
sassc-1.11.0 lib/sassc/script.rb
sassc-1.10.1 lib/sassc/script.rb
sassc-1.10.0 lib/sassc/script.rb
sassc-1.9.0 lib/sassc/script.rb