Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 992 Bytes
1 | module Sass |
2 | module Tree |
3 | # A dynamic node representing a variable definition. |
4 | # |
5 | # @see Sass::Tree |
6 | class VariableNode < Node |
7 | # @param name [String] The name of the variable |
8 | # @param expr [Script::Node] The parse tree for the initial variable value |
9 | # @param guarded [Boolean] Whether this is a guarded variable assignment (`||=`) |
10 | def initialize(name, expr, guarded) |
11 | @name = name |
12 | @expr = expr |
13 | @guarded = guarded |
14 | super() |
15 | end |
16 | |
17 | protected |
18 | |
19 | # Loads the new variable value into the environment. |
20 | # |
21 | # @param environment [Sass::Environment] The lexical environment containing |
22 | # variable and mixin values |
23 | def _perform(environment) |
24 | if @guarded && environment.var(@name).nil? |
25 | environment.set_var(@name, @expr.perform(environment)) |
26 | elsif !@guarded |
27 | environment.set_var(@name, @expr.perform(environment)) |
28 | end |
29 | |
30 | [] |
31 | end |
32 | end |
33 | end |
34 | end |