Class: Sass::Script::CrossBrowserFunctionCall

Inherits:
Literal
  • Object
show all
Includes:
HasSimpleCrossBrowserFunctionSupport
Defined in:
lib/compass/sass_extensions/monkey_patches/browser_support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasSimpleCrossBrowserFunctionSupport

#has_aspect?, #supports?

Constructor Details

#initialize(name, args) ⇒ CrossBrowserFunctionCall

Returns a new instance of CrossBrowserFunctionCall.



25
26
27
28
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 25

def initialize(name, args)
  self.name = name
  self.args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



21
22
23
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 21

def args
  @args
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 21

def name
  @name
end

Instance Method Details

#childrenObject



30
31
32
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 30

def children
  args
end

#inspectObject



34
35
36
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 34

def inspect
  to_s
end

#to_s(options = self.options) ⇒ Object



38
39
40
# File 'lib/compass/sass_extensions/monkey_patches/browser_support.rb', line 38

def to_s(options = self.options)
  s = "#{name}(#{args.join(", ")})"
end