Sha256: 521186d8820396ffa0b78a2379613293796109239b9f86e9ac69ba8db161ed82

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

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
  end
end

require_relative "script/functions"
require_relative "script/string"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sassc-1.3.0 lib/sassc/script.rb