Sha256: 7ecd55288fa38b6687aa63f6432acc67ad0db1e9f195748c82bee377d87a4176

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module Sass
  module Tree
    # A dynamic node representing returning from a function.
    #
    # @see Sass::Tree
    class ReturnNode < Node
      # The expression to return.
      # @type [Script::Node]
      attr_reader :expr

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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