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:
- 880 Bytes
1 | module Sass |
2 | module Script |
3 | # A SassScript parse node representing a variable. |
4 | class Variable < Node |
5 | # The name of the variable. |
6 | # |
7 | # @return [String] |
8 | attr_reader :name |
9 | |
10 | # @param name [String] See \{#name} |
11 | def initialize(name) |
12 | @name = name |
13 | end |
14 | |
15 | # @return [String] A string representation of the variable |
16 | def inspect |
17 | "!#{name}" |
18 | end |
19 | |
20 | # Evaluates the variable. |
21 | # |
22 | # @param environment [Sass::Environment] The environment in which to evaluate the SassScript |
23 | # @return [Literal] The SassScript object that is the value of the variable |
24 | # @raise [Sass::SyntaxError] if the variable is undefined |
25 | def perform(environment) |
26 | (val = environment.var(name)) && (return val) |
27 | raise SyntaxError.new("Undefined variable: \"!#{name}\".") |
28 | end |
29 | end |
30 | end |
31 | end |