Sha256: f5abd8b3ee298ca86c4949fe79af892911405169baee8d1ccd613a7b937c3f5e
Contents?: true
Size: 955 Bytes
Versions: 10
Compression:
Stored size: 955 Bytes
Contents
module Sass::Script::Tree # The parse tree node for a literal scalar value. This wraps an instance of # {Sass::Script::Value::Base}. # # List literals should use {ListLiteral} instead. class Literal < Node # The wrapped value. # # @return [Sass::Script::Value::Base] attr_reader :value # Creates a new literal value. # # @param [Sass::Script::Value::Base] see {#value} def initialize(value) @value = value end # @see Node#children def children; []; end # @see Node#to_sass def to_sass(opts = {}); value.to_sass(opts); end # @see Node#deep_copy def deep_copy; dup; end # @see Node#options= def options=(options) value.options = options end def inspect value.inspect end protected def _perform(environment) value.line = line value.source_range = source_range value.filename = filename value end end end
Version data entries
10 entries across 10 versions & 1 rubygems