Class: Sass::Script::CrossBrowserFunctionCall

Inherits:
Literal
  • Object
show all
Includes:
HasSimpleCrossBrowserFunctionSupport, Value::Helpers
Defined in:
lib/compass/core/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.



55
56
57
58
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 55

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



50
51
52
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 50

def args
  @args
end

#nameObject

Returns the value of attribute name.



50
51
52
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 50

def name
  @name
end

Instance Method Details

#childrenObject



60
61
62
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 60

def children
  args
end

#inspectObject



64
65
66
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 64

def inspect
  to_s
end

#to_s(options = self.options) ⇒ Object



68
69
70
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 68

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