Skip to content

Instantly share code, notes, and snippets.

@markson
Created May 28, 2013 21:35
Show Gist options
  • Save markson/5666346 to your computer and use it in GitHub Desktop.
Save markson/5666346 to your computer and use it in GitHub Desktop.
require 'pry'
class Car
attr_reader :model, :valve
def initialize(model, valve)
@model = model
@engine = Engine.new(valve)
end
def run
puts "wowowowo"
end
end
class Engine
def initialize(valve)
@valve = valve
end
end
car = Car.new("9-3 convertible", 4)
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment