Skip to content

Instantly share code, notes, and snippets.

@arwagner
Created March 26, 2012 01:28
Show Gist options
  • Save arwagner/2202072 to your computer and use it in GitHub Desktop.
Save arwagner/2202072 to your computer and use it in GitHub Desktop.
Recumbent bicycles
class Recumbent < Bicycle
attr_reader :flag
def post_initialize(args)
@flat = args[:flag]
end
def local_spares
{flag: flag}
end
def default_chain
'9-speed'
end
def default_tire_size
'28'
end
end
@arwagner
Copy link
Author

Ok, I think I get this now. I like the idea of thinking about what you can see from inside a class. And also the way you describe the "space between objects". You have an excellent way with words!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment