Sha256: ad6076999ec32c9e290b1e6bec84cf2a4e31cf8a2785677419c64ec8d4a226e9

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

# encoding: utf-8

module AfrLoad
    class TvProgram
        attr_accessor :on_air_date,
            :title_ja, :title,
            :released_year, :released_country,
            :movie_director,
            :leading_actor, :supporting_actor

        def initialize()
            yield(self) if block_given?
        end

        def show()
            puts <<"EOS"
on_air_date: #{@on_air_date}, \
title_ja: #{@title_ja}, \
title: #{@title}, \
released_year: #{@released_year}, \
released_country: #{@released_country}, \
movie_director: #{@movie_director}, \
leading_actor: #{@leading_actor}, \
supporting_actor: #{@supporting_actor}
EOS
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
afr_load-0.1.6 lib/afr_load/tv_program.rb
afr_load-0.1.5 lib/afr_load/tv_program.rb