File: each_node.rb

package info (click to toggle)
ruby-sass 3.7.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,396 kB
  • sloc: ruby: 32,443; sh: 26; makefile: 25
file content (24 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'sass/tree/node'

module Sass::Tree
  # A dynamic node representing a Sass `@each` loop.
  #
  # @see Sass::Tree
  class EachNode < Node
    # The names of the loop variables.
    # @return [Array<String>]
    attr_reader :vars

    # The parse tree for the list.
    # @return [Script::Tree::Node]
    attr_accessor :list

    # @param vars [Array<String>] The names of the loop variables
    # @param list [Script::Tree::Node] The parse tree for the list
    def initialize(vars, list)
      @vars = vars
      @list = list
      super()
    end
  end
end