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
sassc-embedded-1.75.0 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.74.1 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.74.0 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.70.1 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.70.0 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.69.1 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.69.0 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.6 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.5 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.4 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.3 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.2 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
sassc-embedded-1.68.1 vendor/github.com/sass/sassc-ruby/lib/sassc/script.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/lib/sassc/script.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/sassc-2.4.0/lib/sassc/script.rb
sassc-2.4.0-x64-mingw32 lib/sassc/script.rb
sassc-2.4.0 lib/sassc/script.rb
sassc-2.3.0-x64-mingw32 lib/sassc/script.rb
sassc-2.3.0 lib/sassc/script.rb