Module: Oga::XML::PrettyNodeSet

Defined in:
lib/epitools/gem_ext/oga.rb

Instance Method Summary collapse

Instance Method Details

#prettyObject



21
22
23
24
# File 'lib/epitools/gem_ext/oga.rb', line 21

def pretty
  require 'coderay'
  lesspipe(wrap: true) { |less| each { |node| less.puts CodeRay.scan(node.to_haml, :haml).term; less.puts; less.puts } }
end