Skip to content

Instantly share code, notes, and snippets.

@with-heart
Created June 6, 2014 03:33
Show Gist options
  • Save with-heart/ec3b5a9278ae493e31f3 to your computer and use it in GitHub Desktop.
Save with-heart/ec3b5a9278ae493e31f3 to your computer and use it in GitHub Desktop.
Ruby Abstract of My Birth
class BryanKaelin < Man
attr_accessor :time_paradox
def initialize(name, body, time_paradox)
@time_paradox = time_paradox
super
end
def create_offspring(name)
Man.new(name, @body + @time_paradox)
end
end
b_kael = BryanKaelin.new("Bryan Kaelin", Body.new(BodyTypes::GodBirther + BodyTypes::SunFucker), TemporalParadox::ThirdMagnitude)
chan_ler = b_kael.create_offspring("Chan'ler")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment