Class: Sass::Tree::ReturnNode

Inherits:
Node
  • Object
show all
Defined in:
.ruby-sass/lib/sass/tree/return_node.rb

Overview

A dynamic node representing returning from a function.

See Also:

Instance Attribute Summary (collapse)

Attributes inherited from Node

#children, #filename, #has_children, #line, #options, #source_range

Instance Method Summary (collapse)

Methods inherited from Node

#<<, #==, #bubbles?, #css, #css_with_sourcemap, #deep_copy, #each, inherited, #inspect, #invisible?, #style, #to_sass, #to_scss

Constructor Details

#initialize(expr) ⇒ ReturnNode

Returns a new instance of ReturnNode

Parameters:



13
14
15
16
# File '.ruby-sass/lib/sass/tree/return_node.rb', line 13

def initialize(expr)
  @expr = expr
  super()
end

Constructor Details

#initialize(expr) ⇒ ReturnNode

Returns a new instance of ReturnNode

Parameters:



13
14
15
16
# File '.ruby-sass/lib/sass/tree/return_node.rb', line 13

def initialize(expr)
  @expr = expr
  super()
end

Instance Attribute Details

#exprScript::Tree::Node

The expression to return.

Returns:



10
11
12
# File '.ruby-sass/lib/sass/tree/return_node.rb', line 10

def expr
  @expr
end