Class: Chronograph::LongEvent
- Inherits:
-
Person
- Object
- Struct
- Person
- Chronograph::LongEvent
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
Instance Method Details
#begining_event ⇒ Object
33
34
35
|
# File 'lib/chronograph/person.rb', line 33
def begining_event
Event.new("Beginning of #{name}", birth, "#{name} begins. #{@desc}")
end
|
#ending_event ⇒ Object
37
38
39
|
# File 'lib/chronograph/person.rb', line 37
def ending_event
Event.new("End of #{name}", death, "#{name} ends. #{@desc}")
end
|