Class: Chronograph::LongEvent

Inherits:
Person
  • Object
show all
Defined in:
lib/chronograph/person.rb

Direct Known Subclasses

War

Instance Attribute Summary

Attributes inherited from Person

#birth, #death, #desc, #events, #name

Instance Method Summary collapse

Methods inherited from Person

#initialize

Constructor Details

This class inherits a constructor from Chronograph::Person

Instance Method Details

#begining_eventObject



33
34
35
# File 'lib/chronograph/person.rb', line 33

def begining_event                               
    Event.new("Beginning of #{name}", birth, "#{name} begins. #{@desc}")
end

#ending_eventObject



37
38
39
# File 'lib/chronograph/person.rb', line 37

def ending_event
    Event.new("End of #{name}", death, "#{name} ends. #{@desc}")
end