Sha256: 9d31bc29d2c00710958ae775dcd2f946e36de3cebd1e09c7b24b74ce4a1b5e0e
Contents?: true
Size: 469 Bytes
Versions: 39
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module SassC module Script def self.custom_functions(functions: Functions) functions.public_instance_methods end def self.formatted_function_name(function_name, functions: Functions) params = functions.instance_method(function_name).parameters params = params.map { |param_type, name| "$#{name}#{': null' if param_type == :opt}" }.join(", ") return "#{function_name}(#{params})" end end end
Version data entries
39 entries across 38 versions & 5 rubygems