Sha256: 167185ddc9558399c3ef75350152e688cc43202d8681efd4905b309395f0a9f8

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module Sass
  module Tree
    # A dynamic node representing a Sass `@debug` statement.
    #
    # @see Sass::Tree
    class DebugNode < Node
      # The expression to print.
      # @return [Script::Node] 
      attr_reader :expr

      # Returns sub nodes that are not tree children.
      def subnodes
        Array(expr)
      end

      # @param expr [Script::Node] The expression to print
      def initialize(expr)
        @expr = expr
        super()
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sass-3.1.5 lib/sass/tree/debug_node.rb
sass-3.1.4 lib/sass/tree/debug_node.rb
sass-3.2.0.alpha.11 lib/sass/tree/debug_node.rb