Class: Less2Sass::Less::Tree::UrlNode

Inherits:
Node
  • Object
show all
Defined in:
lib/less2sass/less/tree/url_node.rb

Overview

Represents the CSS ‘url` function call.

The Sass equivalent is Sass::Script::Tree::Funcall.

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #has_children, #has_parent, #line, #parent, #ref_vars

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #contains_variables?, #creates_context?, #each, #get_referenced_variable_names, #initialize, #transform

Constructor Details

This class inherits a constructor from Less2Sass::Less::Tree::Node

Instance Attribute Details

#currentFileInfoObject

Returns the value of attribute currentFileInfo.



9
10
11
# File 'lib/less2sass/less/tree/url_node.rb', line 9

def currentFileInfo
  @currentFileInfo
end

#indexObject

Returns the value of attribute index.



10
11
12
# File 'lib/less2sass/less/tree/url_node.rb', line 10

def index
  @index
end

#isEvaldObject

Returns the value of attribute isEvald.



11
12
13
# File 'lib/less2sass/less/tree/url_node.rb', line 11

def isEvald
  @isEvald
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/less2sass/less/tree/url_node.rb', line 8

def value
  @value
end

Instance Method Details

#to_sass::Sass::Script::Tree::Funcall



16
17
18
# File 'lib/less2sass/less/tree/url_node.rb', line 16

def to_sass
  node(::Sass::Script::Tree::Funcall.new('url', [@value.to_sass], ::Sass::Util::NormalizedMap.new, nil, nil), line)
end