class Event

An object of this class is representing a historical event.

Attributes

detail[R]
disp_index[RW]
title[R]
year[R]

Public Class Methods

new(ev) click to toggle source
# File lib/event.rb, line 27
def initialize(ev)
  @title = ev[0] 
  @year = ev[1]
  @detail = ev[2]
  @disp_index = 0
end

Public Instance Methods

to_s() click to toggle source
# File lib/event.rb, line 34
def to_s
  str = '' << self.class.name << '{ title=' << @title << ', year=' << @year.to_s << ', detail=' << @detail << ', disp_index=' << @disp_index.to_s << '}'
end