Module: Erubis::DeleteIndentEnhancer

Included in:
DeleteIndentEruby
Defined in:
lib/erubis/enhancer.rb

Overview

delete indentation of HTML.

this is language-independent.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.descObject

:nodoc:



574
575
576
# File 'lib/erubis/enhancer.rb', line 574

def self.desc   # :nodoc:
  "delete indentation of HTML."
end

Instance Method Details

#convert_input(src, input) ⇒ Object



578
579
580
581
# File 'lib/erubis/enhancer.rb', line 578

def convert_input(src, input)
  input = input.gsub(/^[ \t]+</, '<')
  super(src, input)
end