a

Ruby code posted
created at 30 May 21:18

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Bicycle
  attr_reader :size

  def initialize(**opts)
    @size = opts[:size]
  end
end

class RoadBike < Bicycle
  attr_reader :tape_color

  def initialize(**opts)
    @tape_color = opts[:tape_color]
    super
  end
  # ...
end
251 Bytes in 8 ms with coderay