Module: Deplate::NoIndent

Defined in:
lib/deplate/mod/noindent.rb

Overview

noindent.rb @Author: Thomas Link (micathom AT gmail com) @Website: deplate.sf.net/ @License: GPL (see www.gnu.org/licenses/gpl.txt) @Created: 29-Aug-2004. @Revision: 0.20

Description: Avoid inserting spaces and linebreaks

Class Method Summary collapse

Class Method Details

.setup(context) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/deplate/mod/noindent.rb', line 14

def setup(context)
    class << context
        def join_blocks(blocks)
            blocks.join
        end
        
        def format_indent(level, shift=false)
            ""
        end
    end
end