Class Sass::Stack::Frame
In: lib/sass/stack.rb
Parent: Object

A single stack frame.

Methods

is_base?   is_import?   is_mixin?   new  

Attributes

filename  [R]  The filename of the file in which this stack frame was created.

@return [String]

line  [R]  The line number on which this stack frame was created.

@return [String]

name  [R]  The name of the stack frame. For mixin frames, this is the mixin name; otherwise, it‘s `nil`.

@return [String?]

type  [R]  The type of this stack frame. This can be `:import`, `:mixin`, or `:base`.

`:base` indicates that this is the bottom-most frame, meaning that it represents a single line of code rather than a nested context. The stack will only ever have one base frame, and it will always be the most deeply-nested frame.

@return [Symbol?]

Public Class methods

Public Instance methods

Whether this is the base frame.

@return [Boolean]

Whether this frame represents an import.

@return [Boolean]

Whether this frame represents a mixin.

@return [Boolean]

[Validate]