Module: Hamlit::Compilers::Strip

Includes:
Hamlit::Concerns::Whitespace
Included in:
Hamlit::Compiler
Defined in:
lib/hamlit/compilers/strip.rb

Instance Method Summary collapse

Methods included from Hamlit::Concerns::Whitespace

#parse_whitespace_removal, #remove_first_space!, #remove_last_space!

Instance Method Details

#on_haml_strip(*exps) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/hamlit/compilers/strip.rb', line 10

def on_haml_strip(*exps)
  exps = exps.dup
  remove_first_space!(exps)
  remove_last_space!(exps)

  on_multi(*exps)
end