Class: Sass::SCSS::StaticParser

Inherits:
Object
  • Object
show all
Defined in:
lib/sass_tumblr.rb

Overview

See lib/sass/scss/static_parser.rb

Instance Method Summary collapse

Instance Method Details

#interp_ident(ident = IDENT) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/sass_tumblr.rb', line 27

def interp_ident(ident = IDENT)
  if var = tok(TUMBLR_VAR)
    [var]
  else
    interp_ident_without_tumblr(ident)
  end
end

#interp_ident_without_tumblrObject

Handle Tumblr variable tags in CSS key Used from CssParser and StaticParser This is needed even we’ve patched in Parser class since it’s also overridden in StaticParser.



26
# File 'lib/sass_tumblr.rb', line 26

alias :interp_ident_without_tumblr :interp_ident

#qualified_name(allow_star_name = false) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/sass_tumblr.rb', line 15

def qualified_name(allow_star_name = false)
  if var = tok(TUMBLR_VAR)
    return nil, var
  else
    qualified_name_without_tumblr(allow_star_name)
  end
end

#qualified_name_without_tumblrObject

Handle Tumblr variable tags in CSS selector Used from CssParser directly, from StaticParser and Parser via RuleNode#try_to_parse_non_interpolated_rules.



14
# File 'lib/sass_tumblr.rb', line 14

alias :qualified_name_without_tumblr :qualified_name