a

Ruby code posted
created at 02 Jun 15:22

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
road_bike = RoadBike.new(
  size: 'M',
  tape_color: 'red')

puts road_bike.tire_size # => 23
puts road_bike.chain # => 11-speed

mountain_bike = MountainBike.new(
  size: 'S',
  front_shock: 'Manitou',
  rear_shock: 'Fox')

puts mountain_bike.tire_size # => 2.1
puts mountain_bike.chain # => 11-speed
314 Bytes in 2 ms with coderay