Is this statement enough in Ruby to create a class?
demo = Amiy.new
Will it create a class named Amiy in Ruby?
If you want to declare a new class, you should do as Jordan said and use this syntax:
class Amiy
end
But technically you can do something like this:
Amiy = Class.new
puts "Amiy: #{(Amiy).inspect}"
instance = Amiy.new
puts "instance: #{(instance).inspect}"
Running that will give you something like this:
Amiy: Amiy
instance: #<Amiy:0xb7500b24>