repl.it
@anonymous/

SuperbSeagreenChapter

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'forwardable'

class WTFA
	extend Forwardable
	
	def_delegators :@wtfb, :d,
	
	def initialize(a, b, c)
		@a = a
		@b = b
		@c = c
		
		@wtfb = WTFB.new(12)
	end
end


class WTFB
	def initialize(d)
		@d = d
	end
end


test = WTFA.new(1,2,3)
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
?