Module: CSL::PrettyPrinter

Included in:
Node
Defined in:
lib/csl/pretty_printer.rb

Instance Method Summary collapse

Instance Method Details

#pretty_printObject



12
13
14
# File 'lib/csl/pretty_printer.rb', line 12

def pretty_print
  preamble << tags.map { |t| pp t }.join("\n")
end

#tagsObject



4
5
6
# File 'lib/csl/pretty_printer.rb', line 4

def tags
  raise 'not implemened by base class'
end

#to_xmlObject



8
9
10
# File 'lib/csl/pretty_printer.rb', line 8

def to_xml
  tags.flatten.join
end