Which programming language is this?
module Greetable
def greet
"Hello from #{self.class.name}"
end
end
class Robot
include Greetable
end
puts Robot.new.greet
Answer: Ruby
A
Play Programming Languages ▸
module mixed into a class with include Greetable and def ... end blocks is Ruby.