Sha256: c8a144b286720060179df71f2553e83b868aaf13fd7d8fb2e1cc7e8a9a338e2b
Contents?: true
Size: 890 Bytes
Versions: 122
Compression:
Stored size: 890 Bytes
Contents
module Sass::Tree # A static node representing a `@supports` rule. # # @see Sass::Tree class SupportsNode < DirectiveNode # The name, which may include a browser prefix. # # @return [String] attr_accessor :name # The supports condition. # # @return [Sass::Supports::Condition] attr_accessor :condition # @param condition [Sass::Supports::Condition] See \{#condition} def initialize(name, condition) @name = name @condition = condition super('') end # @see DirectiveNode#value def value; raise NotImplementedError; end # @see DirectiveNode#resolved_value def resolved_value @resolved_value ||= "@#{name} #{condition.to_css}" end # True when the directive has no visible children. # # @return [Boolean] def invisible? children.all? {|c| c.invisible?} end end end
Version data entries
122 entries across 119 versions & 9 rubygems