Method: SassC::Native.attach_function

Defined in:
lib/sassc/native.rb

.attach_function(*args) ⇒ Object

Remove the redundant “sass_” from the beginning of every method name



40
41
42
43
44
45
46
47
48
# File 'lib/sassc/native.rb', line 40

def self.attach_function(*args)
  return super if args.size != 3

  if args[0] =~ /^sass_/
    args.unshift args[0].to_s.sub(/^sass_/, "")
  end

  super(*args)
end