Sha256: 5b75a7e511a02d4bcdd664776612f60dd9008a26ce64475e34ab60f6727af668

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

require 'sass/tree/node'

module Sass::Tree
  # A dynamic node representing a Sass `@while` loop.
  #
  # @see Sass::Tree
  class WhileNode < Node
    # The parse tree for the continuation expression.
    # @return [Script::Node]
    attr_reader :expr

    # @param expr [Script::Node] See \{#expr}
    def initialize(expr)
      @expr = expr
      super()
    end

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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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