I tried
class X begin end
and
class X {}
neight correct. What is the right code?
You need a semicolon after class X
:
class X; end
correct and verified example:
class C; end
and another, tricky solution :)
C = Class.new
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With