Sha256: f8363aa78e90ac9e345c82c549420910e4efce635ac262f02a481b86812db008
Contents?: true
Size: 500 Bytes
Versions: 17
Compression:
Stored size: 500 Bytes
Contents
module Sass module Tree class VariableNode < Node def initialize(name, expr, guarded) @name = name @expr = expr @guarded = guarded super() end protected def _perform(environment) if @guarded && environment.var(@name).nil? environment.set_var(@name, @expr.perform(environment)) elsif !@guarded environment.set_var(@name, @expr.perform(environment)) end [] end end end end
Version data entries
17 entries across 17 versions & 2 rubygems