Skip to content

Instantly share code, notes, and snippets.

@nixsticks
Created November 26, 2013 13:55
Show Gist options
  • Save nixsticks/7658618 to your computer and use it in GitHub Desktop.
Save nixsticks/7658618 to your computer and use it in GitHub Desktop.
class Cylon
def initialize(parts)
@CPU = parts[:cpu]
@mcp_chip = parts[:MCP]
end
def thing_all_cylons_can_do
# hate humans or something.
end
def other_thing_all_cylons_do
end
end
class Raider < Cylon
def initialize(parts)
super
@raider_part = parts[:raider_part]
end
def fly
#raider starts flying
end
def fire_aerial_missiles
#POW!
end
end
class Centurion < Cylon
def initialize(parts)
super
@centurion_part = parts[:centurion_part]
end
def crush_skulls
# HULK SMASH... wait... wrong franchise
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment