class Report def initialize @title = '月次報告' @text = ['順調','さいこ〜〜〜'] end def output_report puts '' puts ' ' puts ' ' puts " #{@title}" puts ' ' puts ' ' @text.each{|line| puts("

#{line}

") } puts ' ' puts '' end end report = Report.new report.output_report