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



31
32
33
34
35
36
37
# File 'lib/sass_tumblr.rb', line 31

def interp_ident(ident = IDENT)
  if tag = tok(TUMBLR_TAG)
    [tag]
  else
    interp_ident_without_tumblr(ident)
  end
end

#interp_ident_without_tumblrObject

Handle Tumblr 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.



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

alias :interp_ident_without_tumblr :interp_ident

#qualified_name(allow_star_name = false) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/sass_tumblr.rb', line 19

def qualified_name(allow_star_name = false)
  if tag = tok(TUMBLR_TAG)
    return nil, tag
  else
    qualified_name_without_tumblr(allow_star_name)
  end
end

#qualified_name_without_tumblrObject

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



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

alias :qualified_name_without_tumblr :qualified_name