# encoding: utf-8 module AfrLoad class TvProgram attr_accessor :on_air_date, :on_air_start, :on_air_end, :title_ja, :title, :released_year, :released_country, :movie_director, :leading_actor, :supporting_actor def initialize() yield(self) if block_given? end def show() puts values end def values vals = instance_variables.each.map do |var| k = var.to_s.tr("@","") v = instance_variable_get(var) "#{k}: #{v}" end vals.join(", ") end end end