Class: Sass::Tree::ReturnNode

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

Overview

A dynamic node representing returning from a function.

See Also:

Instance Attribute Summary

Instance Method Summary

Methods inherited from Node

#<<, #==, #balance, #deep_copy, #do_extend, #each, #inspect, #invisible?, #style, #to_s, #to_sass, #to_scss

Constructor Details

- (ReturnNode) initialize(expr)

A new instance of ReturnNode

Parameters:



12
13
14
15
# File '/var/www/sass-pages/.sass/lib/sass/tree/return_node.rb', line 12

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

Instance Attribute Details

- expr

The expression to return.



9
10
11
# File '/var/www/sass-pages/.sass/lib/sass/tree/return_node.rb', line 9

def expr
  @expr
end