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

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