Methods

Class/Module Index [+]

Quicksearch

Sass::Tree::MediaNode

A static node representing a `@media` rule. `@media` rules behave differently from other directives in that when they’re nested within rules, they bubble up to top-level.

@see Sass::Tree

Attributes

group_end[RW]
query[RW]

The media query (e.g. `print` or `screen`).

@return [String]

tabs[RW]

Public Instance Methods

value() click to toggle source

@see DirectiveNode#value

# File lib/sass/tree/media_node.rb, line 28
def value
  "@media #{query}"
end

Public Class Methods

new(query) click to toggle source

@param query [String] See {#query}

# File lib/sass/tree/media_node.rb, line 21
def initialize(query)
  @query = query
  @tabs = 0
  super('')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.