a

Ruby code posted
created at 30 May 20:28

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

road_bike.size  # => "M"

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

mountain_bike.size
# NoMethodError: undefined method 'size'
332 Bytes in 2 ms with coderay