# list0306.rb
# クラス宣言の方法

class Latex
  def Latex.print_preamble
    print '\documentclass[a4j]{jarticle}',"\n"
    print '\usepackage[dvips]{graphicx}',"\n"
  end
  def Latex.print_begin_document
    print '\begin{document}',"\n"
  end
  def Latex.print_end_document
    print '\end{document}',"\n"
  end

end

Latex::print_preamble
Latex::print_begin_document
Latex::print_end_document